include/win32/applicfg.h
changeset 687 e23df9586397
parent 684 3804ee7f9030
child 724 1445f32c4b2d
equal deleted inserted replaced
686:194289baf21b 687:e23df9586397
   100 #elif (_MSC_VER >= 1400)
   100 #elif (_MSC_VER >= 1400)
   101 //Visual Studio 2005 and above
   101 //Visual Studio 2005 and above
   102 #ifdef UNICODE
   102 #ifdef UNICODE
   103 #define MSG(...) \
   103 #define MSG(...) \
   104   do{wchar_t msg[300];\
   104   do{wchar_t msg[300];\
   105    swprintf(msg,L##__VA_ARGS__);\
   105    swprintf(msg,sizeof(msg)/sizeof(msg[0]), L##__VA_ARGS__); \
   106    OutputDebugString(msg);}while(0)
   106    OutputDebugString(msg);}while(0)
   107 #else
   107 #else
   108 #define MSG(...) \
   108 #define MSG(...) \
   109 do{char msg[300];\
   109 do{char msg[300];\
   110    sprintf(msg,##__VA_ARGS__);\
   110    sprintf(msg,##__VA_ARGS__);\