[Cppunit-cvs] cppunit2/include/cpptl atomiccounter.h,1.9,1.10
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2006-03-06 22:50:56
|
Update of /cvsroot/cppunit/cppunit2/include/cpptl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1159/include/cpptl Modified Files: atomiccounter.h Log Message: * fixed msvc6 compilation issues Index: atomiccounter.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/cpptl/atomiccounter.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** atomiccounter.h 9 Nov 2005 22:03:55 -0000 1.9 --- atomiccounter.h 6 Mar 2006 22:50:53 -0000 1.10 *************** *** 7,16 **** # endif - // Notes: linux implementation only guaranty a 24 bits range for the atomic integer. - # if CPPTL_USE_WIN32_ATOMIC // Forwards declaration for WIN32 (avoid including windows.h) extern "C" __declspec(dllimport) long __stdcall InterlockedIncrement(long volatile *); extern "C" __declspec(dllimport) long __stdcall InterlockedDecrement(long volatile *); # endif // ifdef CPPTL_USE_WIN32_ATOMIC --- 7,19 ---- # endif # if CPPTL_USE_WIN32_ATOMIC // Forwards declaration for WIN32 (avoid including windows.h) + # if _MSC_VER <= 1200 // VC++ 6 platform SDK as not volatile + extern "C" __declspec(dllimport) long __stdcall InterlockedIncrement(long *); + extern "C" __declspec(dllimport) long __stdcall InterlockedDecrement(long *); + # else extern "C" __declspec(dllimport) long __stdcall InterlockedIncrement(long volatile *); extern "C" __declspec(dllimport) long __stdcall InterlockedDecrement(long volatile *); + # endif # endif // ifdef CPPTL_USE_WIN32_ATOMIC |