stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r573566 - in /incubator/stdcxx/trunk/src: export.cpp once.cpp
Date Fri, 07 Sep 2007 13:06:11 GMT
Author: faridz
Date: Fri Sep  7 06:06:09 2007
New Revision: 573566

URL: http://svn.apache.org/viewvc?rev=573566&view=rev
Log:
2007-09-07 Farid Zaripov <Farid_Zaripov@epam.com>

	* once.cpp: Moved #pragma's from this file ...
	* export.cpp: ... to this.

Modified:
    incubator/stdcxx/trunk/src/export.cpp
    incubator/stdcxx/trunk/src/once.cpp

Modified: incubator/stdcxx/trunk/src/export.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/export.cpp?rev=573566&r1=573565&r2=573566&view=diff
==============================================================================
--- incubator/stdcxx/trunk/src/export.cpp (original)
+++ incubator/stdcxx/trunk/src/export.cpp Fri Sep  7 06:06:09 2007
@@ -127,3 +127,32 @@
 #include "podarray.cc"
 
 #endif   // _RWSTD_NO_EXPORT
+
+// export __rw_atomic_xxx() functions, defined in atomic.asm
+#if defined (_WIN32) && defined (_DLL)
+
+#  if defined (_M_IX86)
+
+#    pragma comment(linker, "/EXPORT:___rw_atomic_add8")
+#    pragma comment(linker, "/EXPORT:___rw_atomic_add16")
+#    pragma comment(linker, "/EXPORT:___rw_atomic_add32")
+#    pragma comment(linker, "/EXPORT:___rw_atomic_xchg8")
+#    pragma comment(linker, "/EXPORT:___rw_atomic_xchg16")
+#    pragma comment(linker, "/EXPORT:___rw_atomic_xchg32")
+
+#  elif defined (_M_X64)
+
+#    pragma comment(linker, "/EXPORT:__rw_atomic_add8")
+#    pragma comment(linker, "/EXPORT:__rw_atomic_add16")
+#    pragma comment(linker, "/EXPORT:__rw_atomic_add32")
+#    pragma comment(linker, "/EXPORT:__rw_atomic_xchg8")
+#    pragma comment(linker, "/EXPORT:__rw_atomic_xchg16")
+#    pragma comment(linker, "/EXPORT:__rw_atomic_xchg32")
+
+#    ifdef _RWSTD_INT64_T
+#      pragma comment(linker, "/EXPORT:__rw_atomic_add64")
+#      pragma comment(linker, "/EXPORT:__rw_atomic_xchg64")
+#    endif   // _RWSTD_INT64_T
+#  endif   // _M_IX86
+
+#endif   // _WIN32 && _DLL

Modified: incubator/stdcxx/trunk/src/once.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/once.cpp?rev=573566&r1=573565&r2=573566&view=diff
==============================================================================
--- incubator/stdcxx/trunk/src/once.cpp (original)
+++ incubator/stdcxx/trunk/src/once.cpp Fri Sep  7 06:06:09 2007
@@ -188,32 +188,3 @@
 }   // extern "C"
 
 }   // namespace __rw
-
-// export __rw_atomic_xxx() functions, defined in atomic.asm
-#if defined (_WIN32) && defined (_DLL)
-
-#  if defined (_M_IX86)
-
-#    pragma comment(linker, "/EXPORT:___rw_atomic_add8")
-#    pragma comment(linker, "/EXPORT:___rw_atomic_add16")
-#    pragma comment(linker, "/EXPORT:___rw_atomic_add32")
-#    pragma comment(linker, "/EXPORT:___rw_atomic_xchg8")
-#    pragma comment(linker, "/EXPORT:___rw_atomic_xchg16")
-#    pragma comment(linker, "/EXPORT:___rw_atomic_xchg32")
-
-#  elif defined (_M_X64)
-
-#    pragma comment(linker, "/EXPORT:__rw_atomic_add8")
-#    pragma comment(linker, "/EXPORT:__rw_atomic_add16")
-#    pragma comment(linker, "/EXPORT:__rw_atomic_add32")
-#    pragma comment(linker, "/EXPORT:__rw_atomic_xchg8")
-#    pragma comment(linker, "/EXPORT:__rw_atomic_xchg16")
-#    pragma comment(linker, "/EXPORT:__rw_atomic_xchg32")
-
-#    ifdef _RWSTD_INT64_T
-#      pragma comment(linker, "/EXPORT:__rw_atomic_add64")
-#      pragma comment(linker, "/EXPORT:__rw_atomic_xchg64")
-#    endif   // _RWSTD_INT64_T
-#  endif   // _M_IX86
-
-#endif   // _WIN32 && _DLL



Mime
View raw message