Commit abafb4fe authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix warning for C++ define.

parent 09226fc8
......@@ -1782,7 +1782,9 @@ int main(void)
#include <mach/mach_time.h>
#endif
#ifdef __cplusplus
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#if defined(__GNUC__) && (__GNUC__ >= 4)
......
......@@ -2,7 +2,7 @@
#include "config.h"
#endif
#ifndef __STDC_FORMAT_MACROS
#if defined __cplusplus && !defined __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment