Ubuntu 14.04's C++ already defines these, so guard them.

This commit is contained in:
John Ralls 2014-12-08 13:10:56 -08:00
parent 517e853eb6
commit 6a546f727b

View File

@ -27,9 +27,11 @@
extern "C" extern "C"
{ {
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1 #define __STDC_LIMIT_MACROS 1
#define __STDC_CONSTANT_MACROS 1 #define __STDC_CONSTANT_MACROS 1
#define __STDC_FORMAT_MACROS 1 #define __STDC_FORMAT_MACROS 1
#endif
#include <inttypes.h> #include <inttypes.h>
} }