Skip to content

Instantly share code, notes, and snippets.

@mlabbe
Created November 9, 2015 00:11
Show Gist options
  • Select an option

  • Save mlabbe/51b5fea0cf7d03b7bf58 to your computer and use it in GitHub Desktop.

Select an option

Save mlabbe/51b5fea0cf7d03b7bf58 to your computer and use it in GitHub Desktop.
How I handle missing stdint.c
// 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