Commit 5d7ffb61 authored by Ghislain MARY's avatar Ghislain MARY

Fix header inclusion order to prevent snprintf macro redefinition with Visual Studio.

parent efca6599
......@@ -101,9 +101,6 @@
# else
# define CU_EXPORT
# endif
# ifdef _MSC_VER
# define snprintf _snprintf
# endif
#else
# define CU_EXPORT
#endif /* WIN32 */
......@@ -112,6 +109,12 @@
#include "TestDB.h" /* not needed here - included for user convenience */
#include "TestRun.h" /* not needed here - include (after BOOL define) for user convenience */
#ifdef _MSC_VER
#ifndef snprintf
#define snprintf _snprintf
#endif
#endif
/** Record a pass condition without performing a logical test. */
#define CU_PASS(msg) \
{ CU_assertImplementation(CU_TRUE, __LINE__, ("CU_PASS(" #msg ")"), __FILE__, "", CU_FALSE); }
......
Markdown is supported
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