Author: shadowmaster
Date: Wed Jul 30 22:31:30 2008
New Revision: 28273

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28273&view=rev
Log:
* Further explanation of why the nasty preprocessor hack is required.

Modified:
    trunk/src/addon_management.cpp

Modified: trunk/src/addon_management.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/addon_management.cpp?rev=28273&r1=28272&r2=28273&view=diff
==============================================================================
--- trunk/src/addon_management.cpp (original)
+++ trunk/src/addon_management.cpp Wed Jul 30 22:31:30 2008
@@ -973,6 +973,12 @@
 //
 // error: class ‘addon_version_info’ does not have any field named 
‘gnu_dev_major
 // error: class ‘addon_version_info’ does not have any field named 
‘gnu_dev_minor
+//
+// This is because "major" and "minor" are defined as compatibility macros in
+// sys/sysmacros.h. I guess it is safe to just use this workaround instead of
+// renaming these fields, since the only ambiguous case seems to be in 
initializer
+// lists.
+//
 #ifdef major
        #undef major
 #endif


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to