|
From: Kai T. <kti...@go...> - 2011-10-31 14:44:28
|
2011/10/31 niXman <i.n...@gm...>: > Hello list! > > Anyone, tell me please, what macros I need to use to determine the > mingw-w64-crt and winpthreads? > To determine the pthreads-win32: http://sourceware.org/pthreads-win32 > I use PTW32_VERSION macro. > > Thanks. > niXman. Well, winpthread doesn't provide right now a library version define. Suggest a patch for adding one ;) To determine, if you are using mingw-w64, or a different C-runtime, please use the following mechanism: #include <stdlib> /* Or what other C-runtime header you want, you can use here _mingw.h, too */ #ifdef __MINGW64_VERSION_MAJOR /* You are using mingw-w64. */ #else /* You are using something else. */ #endif Cheers, Kai #endif |