mirror of
https://github.com/boostorg/predef.git
synced 2025-08-05 06:14:29 +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)
|
#if (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
|
||||||
#undef BOOST_LIBSTD_DINKUMWARE
|
#undef BOOST_LIBSTD_DINKUMWARE
|
||||||
#if defined(_CPPLIB_VER)
|
#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
|
#else
|
||||||
#define BOOST_LIBSTD_DINKUMWARE BOOST_VERSION_NUMBER(0,0,1)
|
#define BOOST_LIBSTD_DINKUMWARE BOOST_VERSION_NUMBER(0,0,1)
|
||||||
#endif
|
#endif
|
||||||
|
@@ -35,6 +35,7 @@ int predef_info_compare(const void * a, const void * b)
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
unsigned x = 0;
|
||||||
predef_info ** predefs = 0;
|
predef_info ** predefs = 0;
|
||||||
unsigned predef_count = 0;
|
unsigned predef_count = 0;
|
||||||
unsigned * i = &first_predef_info.tag;
|
unsigned * i = &first_predef_info.tag;
|
||||||
@@ -50,7 +51,6 @@ int main()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
qsort(predefs,predef_count,sizeof(predef_info*),predef_info_compare);
|
qsort(predefs,predef_count,sizeof(predef_info*),predef_info_compare);
|
||||||
int x = 0;
|
|
||||||
puts("** Detected **");
|
puts("** Detected **");
|
||||||
for (x = 0; x < predef_count; ++x)
|
for (x = 0; x < predef_count; ++x)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user