Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » #ifdef PLATFORM_POSIX #include <bits/atomicity.h> for POSIX ?
Re: #ifdef PLATFORM_POSIX [message #10644 is a reply to message #10639] Fri, 20 July 2007 11:21 Go to previous messageGo to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
luzr wrote on Fri, 20 July 2007 10:22

Why not, but I am sure I have built the current code with GCC4.1....


Then I suggest to also use __GNUC_MINOR__:

#ifdef PLATFORM_POSIX
#ifdef COMPILER_GCC
#if ((__GNUC__ > 3) && (__GNUC_MINOR__ > 1))
#include <ext/atomicity.h>
#else
#include <bits/atomicity.h>
#endif
#else
#include <bits/atomicity.h>
#endif
#endif
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: best way to parse XML/svg/html style kind attribute pairs?
Next Topic: Array & Gdiplus::Pen problem
Goto Forum:
  


Current Time: Tue Jul 08 04:21:19 CEST 2025

Total time taken to generate the page: 0.04233 seconds