I'd rather not modify the libtomcrypt code too much if I can avoid it. Does this patch work for you?
diff --git a/setup.py b/setup.py
index 9346a3d..67d8c59 100644
--- a/setup.py
+++ b/setup.py
@@ -121,6 +121,9 @@ class PCTBuildExt (build_ext):
# Tweak compiler options
if self.compiler.compiler_type in ('unix', 'cygwin', 'mingw32'):
+ # Tell GCC to compile using the C99 standard.
+ self.__add_compiler_option("-std=c99")
+
# Make assert() statements always work self.__remove_compiler_option("-DNDEBUG")
I'd rather not modify the libtomcrypt code too much if I can avoid it. Does this patch work for you?
diff --git a/setup.py b/setup.py
index 9346a3d..67d8c59 100644
--- a/setup.py
+++ b/setup.py
@@ -121,6 +121,9 @@ class PCTBuildExt (build_ext):
# Tweak compiler options compiler_ type in ('unix', 'cygwin', 'mingw32'): add_compiler_ option( "-std=c99" )
self. __remove_ compiler_ option( "-DNDEBUG" )
if self.compiler.
+ # Tell GCC to compile using the C99 standard.
+ self.__
+
# Make assert() statements always work