Linux tweaks.

This commit is contained in:
Ben Vanik
2015-08-18 14:18:00 -07:00
parent 19299fad4b
commit 8b0d4fb51c
37 changed files with 200 additions and 111 deletions

View File

@@ -10116,7 +10116,8 @@ GLenum GLEWAPIENTRY glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST)
}
/* query opengl extensions string */
extStart = glewExperimental ? "" : glGetString(GL_EXTENSIONS);
extStart = glewExperimental ? (const GLubyte*)""
: (const GLubyte*)glGetString(GL_EXTENSIONS);
if (extStart == 0)
extStart = (const GLubyte*)"";
extEnd = extStart + _glewStrLen(extStart);

View File

@@ -41,3 +41,12 @@ project("capstone")
"capstone/arch/X86/*.inc",
})
force_compile_as_cc({"capstone/**.c"})
filter("platforms:Linux")
-- Capstone code is... not fantastic.
buildoptions({
"-Wno-error=write-strings",
"-Wno-write-string",
"-Wno-deprecated",
"-w",
})