mirror of
https://github.com/boostorg/predef.git
synced 2025-08-03 05:24:27 +02:00
[predef] Fix typo in Dinkumware predef used vs. detected. Rearrange the C test file to work in pure-C modes. Tested to on Windows with MSVC9.
git-svn-id: http://svn.boost.org/svn/boost/sandbox/predef@75950 b8fc166d-592f-0410-95f2-cb63ce0dd405
This commit is contained in:
@@ -23,7 +23,7 @@ If available version number as major, minor, and patch.
|
||||
#if (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
|
||||
#undef BOOST_LIBSTD_DINKUMWARE
|
||||
#if defined(_CPPLIB_VER)
|
||||
#define BOOST_LIBSTD_DINKUMWARE BOOST_PREDEF_MAKE_NN_NN(__CPPLIB_VER)
|
||||
#define BOOST_LIBSTD_DINKUMWARE BOOST_PREDEF_MAKE_NN_NN(_CPPLIB_VER)
|
||||
#else
|
||||
#define BOOST_LIBSTD_DINKUMWARE BOOST_VERSION_NUMBER(0,0,1)
|
||||
#endif
|
||||
|
@@ -35,6 +35,7 @@ int predef_info_compare(const void * a, const void * b)
|
||||
|
||||
int main()
|
||||
{
|
||||
unsigned x = 0;
|
||||
predef_info ** predefs = 0;
|
||||
unsigned predef_count = 0;
|
||||
unsigned * i = &first_predef_info.tag;
|
||||
@@ -50,7 +51,6 @@ int main()
|
||||
}
|
||||
}
|
||||
qsort(predefs,predef_count,sizeof(predef_info*),predef_info_compare);
|
||||
int x = 0;
|
||||
puts("** Detected **");
|
||||
for (x = 0; x < predef_count; ++x)
|
||||
{
|
||||
|
Reference in New Issue
Block a user