about summary refs log tree commit diff
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2012-01-08 00:01:34 +0100
committeroy <Tom_Adams@web.de>2012-01-08 00:01:34 +0100
commitd7089ea76aa1e3966f0b11de91ed5dae43ecf4ac (patch)
tree69b5ae2d628eae5781281461cc9baabbd148a0bf
parent45302957f19dc1f29cfad721321b24444e589db9 (diff)
downloadzcatch-d7089ea76aa1e3966f0b11de91ed5dae43ecf4ac.tar.gz
zcatch-d7089ea76aa1e3966f0b11de91ed5dae43ecf4ac.zip
fixed compiler warnings for gcc on windows
-rw-r--r--bam.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/bam.lua b/bam.lua
index ac73501f..da893e10 100644
--- a/bam.lua
+++ b/bam.lua
@@ -145,7 +145,10 @@ function build(settings)
 		settings.cc.flags:Add("/wd4244")
 	else
 		settings.cc.flags:Add("-Wall", "-fno-exceptions")
-		if platform == "macosx" then
+		if family == "windows" then
+			-- disable visibility attribute support for gcc on windows
+			settings.cc.defines:Add("NO_VIZ")
+		elseif platform == "macosx" then
 			settings.cc.flags:Add("-mmacosx-version-min=10.5", "-isysroot /Developer/SDKs/MacOSX10.5.sdk")
 			settings.link.flags:Add("-mmacosx-version-min=10.5", "-isysroot /Developer/SDKs/MacOSX10.5.sdk")
 		elseif config.stackprotector.value == 1 then