ecere/3D/Mesh: Correction to warning fix; default.cf: Clang build fix on Debian
authorJerome St-Louis <jerome@ecere.com>
Sun, 6 Jul 2014 22:15:47 +0000 (18:15 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sun, 6 Jul 2014 22:15:47 +0000 (18:15 -0400)
Makefile
default.cf
ecere/src/gfx/3D/Mesh.ec

index c00f713..d905252 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -832,3 +832,4 @@ troubleshoot:
        @$(call echo,GIT_REPOSITORY=$(GIT_REPOSITORY))
        @$(call echo,DIR_VER=$(DIR_VER))
        @$(call echo,REPOSITORY_VER=$(REPOSITORY_VER))
+       @$(call echo,CPPFLAGS=$(CPPFLAGS))
index 8fb621a..cd1697c 100644 (file)
@@ -40,6 +40,12 @@ TARGET_ARCH :=$(shell $(CC) -dumpmachine)
   else
      TARGET_ARCH := i386
   endif
+ else
+  ifdef LINUX_TARGET
+   ifneq ($(filter x86_64-pc-linux-gnu,$(TARGET_ARCH)),)    # Fix for PREFIXLIBDIR / DEB_HOST_MULTIARCH with Clang on Debian
+      TARGET_ARCH := x86_64-linux-gnu
+   endif
+  endif
  endif
 endif
 
index 335ffe5..29815ed 100644 (file)
@@ -122,7 +122,7 @@ public:
    bool Allocate(MeshFeatures what, int nVertices, DisplaySystem displaySystem)
    {
       bool result = false;
-      if((!nVertices || this.nVertices == nVertices) && (!this.displaySystem || this.displaySystem == displaySystem))
+      if((!this.nVertices || this.nVertices == nVertices) && (!this.displaySystem || this.displaySystem == displaySystem))
       {
          flags |= what;
          this.nVertices = nVertices;