[opengtl-commits] [179] fix compilation for gcc 4.3

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 179
Author:   cyrille
Date:     2008-05-19 14:32:58 +0200 (Mon, 19 May 2008)

Log Message:
-----------
fix compilation for gcc 4.3

Modified Paths:
--------------
    trunk/OpenGTL/OpenCTL/tests/library/TestProgram.h
    trunk/OpenGTL/OpenCTL/tools/compiler/CtlC.cpp


Modified: trunk/OpenGTL/OpenCTL/tests/library/TestProgram.h
===================================================================
--- trunk/OpenGTL/OpenCTL/tests/library/TestProgram.h	2008-05-19 12:06:40 UTC (rev 178)
+++ trunk/OpenGTL/OpenCTL/tests/library/TestProgram.h	2008-05-19 12:32:58 UTC (rev 179)
@@ -18,6 +18,9 @@
  */
 
 #include "OpenCTL/Program.h"
+
+#include <cstring>
+
 #include "GTLCore/FloatHalfConverter_p.h"
 
 class TestInteger8GrayScaleProgram : public GTLTest::Case {

Modified: trunk/OpenGTL/OpenCTL/tools/compiler/CtlC.cpp
===================================================================
--- trunk/OpenGTL/OpenCTL/tools/compiler/CtlC.cpp	2008-05-19 12:06:40 UTC (rev 178)
+++ trunk/OpenGTL/OpenCTL/tools/compiler/CtlC.cpp	2008-05-19 12:32:58 UTC (rev 179)
@@ -20,6 +20,7 @@
 // C++ Headers
 #include <iostream>
 #include <fstream>
+#include <cstdlib>
 
 // OpenCTL Headers
 #include <OpenCTL/Module.h>
@@ -46,7 +47,7 @@
 
 #define ARG_IS(a,b) argv[ai] == GTLCore::String(a) or argv[ai] == GTLCore::String(b)
 
-int main(char argc, char** argv)
+int main(int argc, char** argv)
 {
   GTLCore::String fileName = "";
   bool showAssembly = false;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/