Author: sebor
Date: Mon Mar 6 13:02:51 2006
New Revision: 383667
URL: http://svn.apache.org/viewcvs?rev=383667&view=rev
Log:
2006-03-06 Martin Sebor <[EMAIL PROTECTED]>
* ATOMIC_OPS.cpp: Added/changed comments.
Modified:
incubator/stdcxx/trunk/etc/config/src/ATOMIC_OPS.cpp
Modified: incubator/stdcxx/trunk/etc/config/src/ATOMIC_OPS.cpp
URL:
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/src/ATOMIC_OPS.cpp?rev=383667&r1=383666&r2=383667&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/ATOMIC_OPS.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/ATOMIC_OPS.cpp Mon Mar 6 13:02:51
2006
@@ -27,16 +27,20 @@
{
#if !defined (_RWSTD_USE_CONFIG)
- printf (":\n#undef _RWSTD_ATOMIC_OPS\n");
+ printf ("/**/\n#undef _RWSTD_ATOMIC_OPS\n");
#endif // _RWSTD_USE_CONFIG
+ // determine the argument type of InterlockedIncrement()
+ // (the type changes from long* to volatile long* depending
+ // on the version/patch of MSVC)
+
printf ("#define _RWSTD_INTERLOCKED_T %s\n", foo (InterlockedIncrement));
return 0;
}
-#else
+#else // not Windows
#include <stdio.h>
@@ -44,11 +48,11 @@
{
#if !defined (_RWSTD_USE_CONFIG)
- printf (":\n#undef _RWSTD_ATOMIC_OPS\n");
+ printf ("/**/\n#undef _RWSTD_ATOMIC_OPS\n");
#endif // _RWSTD_USE_CONFIG
return 0;
}
-#endif
+#endif // Windows