Description:
Hi,
This is a suggestion for your source in my_global.h.
I suggest you update this line:
#define __STDC_LIMIT_MACROS
to:
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
This problem arises for our project when we build our MySQL client software. We build from your source to create our Custom Storage Engine. The conflict arises because we send to the compiler this define -D__STDC_LIMIT_MACROS. I know your compilation instructions in my_global.h say to #include your my_global.h header file first, but that doesn't solve our conflict because we use a compiler flag which means our define is first.
Looking online at other unrelated projects, I have seen others resolve this conflict by updating their code as I suggest above.
How to repeat:
in source tarball, view mysqlcom-pro-5.7.10\include\my_global.h
Suggested fix:
note that __STDC_LIMIT_MACROS is unconditionally defined. I think it could be more developer friendly if was conditionally defined.
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif