- Timestamp:
- 08/01/08 14:47:24 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/BAL/OWBAL/Concretizations/Types/None/BCThreadingNone.h
r424 r427 64 64 #include <wtf/Noncopyable.h> 65 65 66 // On wx/Win, including windows.h here causes multiply-defined symbol errors 67 // for libjpeg and wx, and also wx needs to include windows.h itself first for wx 68 // includes to work right. So until we can find a better solution to this problem, 69 // on wx, we workaround including windows.h here. 70 #if PLATFORM(WIN_OS) && !PLATFORM(WX) 66 #if PLATFORM(WIN_OS) 71 67 #include <windows.h> 72 68 #elif PLATFORM(DARWIN) … … 178 174 179 175 #if COMPILER(MINGW) || COMPILER(MSVC7) 180 #if PLATFORM(WX)181 // we define these prototypes to avoid a dependency on windows.h in the header. See comment at top of header.182 long InterlockedIncrement(long *Addend);183 long InterlockedDecrement(long *Addend);184 #endif185 176 inline void atomicIncrement(int* addend) { InterlockedIncrement(reinterpret_cast<long*>(addend)); } 186 177 inline int atomicDecrement(int* addend) { return InterlockedDecrement(reinterpret_cast<long*>(addend)); } 187 178 #else 188 #if PLATFORM(WX)189 // we define these prototypes to avoid a dependency on windows.h in the header. See comment at top of header.190 long InterlockedIncrement(long volatile *Addend);191 long InterlockedDecrement(long volatile *Addend);192 #endif193 179 inline void atomicIncrement(int volatile* addend) { InterlockedIncrement(reinterpret_cast<long volatile*>(addend)); } 194 180 inline int atomicDecrement(int volatile* addend) { return InterlockedDecrement(reinterpret_cast<long volatile*>(addend)); }
