stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r383667 - /incubator/stdcxx/trunk/etc/config/src/ATOMIC_OPS.cpp
Date Mon, 06 Mar 2006 21:02:53 GMT
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  <sebor@roguewave.com>

	* 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



Mime
View raw message