Created
November 9, 2015 00:11
-
-
Save mlabbe/51b5fea0cf7d03b7bf58 to your computer and use it in GitHub Desktop.
How I handle missing stdint.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Everything before vs2008 doesn't have stdint.h | |
| #if defined(_MSC_VER) && (_MSC_VER < 1600) | |
| typedef unsigned char svis__uint8; | |
| typedef unsigned int svis__uint32; | |
| #else | |
| #include <stdint.h> | |
| typedef uint8_t svis__uint8; | |
| typedef uint32_t svis__uint32; | |
| #endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment