Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Undefined Type 'uint32_t' by Including <cstdint> #148

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <time.h>
#include <string>
#include <cstdint>
#ifdef WIN64
#include <windows.h>
#endif
Expand Down
1 change: 1 addition & 0 deletions hash/sha256.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

#include <string.h>
#include <cstdint>
#include "sha256.h"

#define BSWAP
Expand Down
3 changes: 2 additions & 1 deletion hash/sha256.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#ifndef SHA256_H
#define SHA256_H
#include <string>
#include <cstdint>

void sha256(uint8_t *input,int length, uint8_t *digest);
void sha256_33(uint8_t *input, uint8_t *digest);
Expand All @@ -32,4 +33,4 @@ void sha256sse_checksum(uint32_t *i0, uint32_t *i1, uint32_t *i2, uint32_t *i3,
std::string sha256_hex(unsigned char *digest);
void sha256sse_test();

#endif
#endif
1 change: 1 addition & 0 deletions hash/sha512.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

#include <string.h>
#include <cstdint>
#include "sha512.h"

#define BSWAP
Expand Down