# HG changeset patch # User mjsousa # Date 1354361268 0 # Node ID d736dc9e9e51fc5ebc24909e29ce1913c9f583e2 # Parent 16050b4303a0b6a1f7f195ebefc831176136dac8 Protect against redefining macros diff -r 16050b4303a0 -r d736dc9e9e51 main.hh --- a/main.hh Tue Nov 27 17:20:16 2012 +0000 +++ b/main.hh Sat Dec 01 11:27:48 2012 +0000 @@ -48,8 +48,9 @@ /* Get the definition of INT16_MAX, INT16_MIN, UINT64_MAX, INT64_MAX, INT64_MIN, ... */ - +#ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS /* required to have UINTxx_MAX defined when including stdint.h from C++ source code. */ +#endif #include #include @@ -124,7 +125,9 @@ * e.g. uint64_t v; printf("value=%"PRIu64" !!\n", v); * e.g. uint64_t v; printf("value=%"PRIx64" !!\n", v); // hexadecimal format */ +#ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS +#endif #include