[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:
Rene Rivera
2011-12-15 05:07:17 +00:00
parent 86cc3136ad
commit 8565fbb7cf
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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)
{