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 » Community » U++ community news and announcements » src package should now work just fine in Linux and BSD
Re: src package should now work just fine in Linux and BSD [message #20978 is a reply to message #20968] Thu, 23 April 2009 16:16 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
masu wrote on Wed, 22 April 2009 04:53

cocob wrote on Wed, 22 April 2009 09:02

does not work on solaris sparc with gcc 4.3
I think the problem is

#if __linux
#define PLATFORM_LINUX 1
#else // ToDo
#define PLATFORM_BSD 1
#define PLATFORM_FREEBSD 1
#endif

cocob


I am about to prepare the next OpenBSD patch set (the last one was not included by Mirek until now), I modified this section to:
#if __unix || __unix__
...
#if __linux
        #define PLATFORM_LINUX 1
#else // ToDo
        #if _FreeBSD_
                 #define PLATFORM_BSD 1
                 #define PLATFORM_FREEBSD 1
        #elif _OpenBSD_
                 #define PLATFORM_BSD 1
                 #define PLATFORM_OPENBSD 1
        #else
                 #error Unknown OS !
        #endif
#endif
#endif


I do not have the actual code here, but it could also be __*BSD__ instead of _*BSD_. And maybe one could use _Solaris_ for Solaris OS or whatever is defined by installed GCC.

Matthias


It is actually sort of question whether we need both (BSD and specificBSD). In fact, I guess I should change all #ifdef PLATFORM_FREEBSD to just PLATFORM_BSD.

If you are going to fix for OpenBSD, this is the first thing to try.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Router problems...
Next Topic: Real name
Goto Forum:
  


Current Time: Sat Jul 19 05:28:53 CEST 2025

Total time taken to generate the page: 0.03734 seconds