Permalink
Browse files

fixed linux build with new gcc versions

  • Loading branch information...
1 parent 71af080 commit 92b8bda05d342213c5498464ecc98b1182afa1dd @meeloo meeloo committed Jan 7, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 include/nuiVariant.h
View
@@ -28,7 +28,13 @@ class nuiTopLevel;
class nuiMainWindow;
class nuiLabel;
-#ifdef __clang__
+#define GCC_VERSION (__GNUC__ * 10000 \
+ + __GNUC_MINOR__ * 100 \
+ + __GNUC_PATCHLEVEL__)
+ /* Test for GCC > 3.2.0 */
+ //#if GCC_VERSION > 30200
+
+#if defined __clang__ || GCC_VERSION > 40600
template <> uint64 nuiAttributeTypeTrait<bool>::mTypeId;
template <> uint64 nuiAttributeTypeTrait<int8>::mTypeId;

0 comments on commit 92b8bda

Please sign in to comment.