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 » PLATFORM_X11 warnings
PLATFORM_X11 warnings [message #33417] Wed, 03 August 2011 10:54 Go to next message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Hello all

I get a lot of "redefined PLATFORM_X11" warnings.

It is defined in config.h:

#ifdef flagGUI
	#define PLATFORM_X11 1
#endif


and in X11Gui.h:

#define GUI_X11
#define PLATFORM_X11 // To keep legacy code happy


Is there something wrong in my U++ setup?

It is fixed just adding #ifndef in X11Gui.h:

#define GUI_X11
#ifndef PLATFORM_X11
	#define PLATFORM_X11 // To keep legacy code happy
#endif


Best regards
IƱaki
Re: PLATFORM_X11 warnings [message #33420 is a reply to message #33417] Wed, 03 August 2011 12:37 Go to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
in my upp, i have completely removed the part in
config.h
#ifdef flagGUI
	#define PLATFORM_X11 1
#endif


nothing touching GUI and the like should sit in config.h/Core anymore. PLATFORM_WIN32, PLATFORM_POSIX, PLATFORM_LINUX defined in config.h, have, at first, nothing to do with GUI. flagGUI / PLATFORM_X11 neither are evaluated anywhere in Core/CtrlCore/CtrlLib. flagGUI simply indicates to TheIDE how to specify compile/linkage flags for the desired compiler, there is a differece for gui and non gui environment. this is luckily hidden.

the graphic backends define their presence flags independantly
GUI_WIN32, GUI_X11, GUI_FB, GUI_SDL, GUI_WINGL, ..

so the removing of this section is pretty justified, since the flag is later defined in a place, where it corrisponds to.

[Updated on: Thu, 04 August 2011 11:57]

Report message to a moderator

Previous Topic: [DISCUSSION] Add 'complex' datatype, to Value too
Next Topic: Polymorphic Array doubt
Goto Forum:
  


Current Time: Thu Apr 25 12:52:58 CEST 2024

Total time taken to generate the page: 0.03667 seconds