]> Creatis software - creaContours.git/commitdiff
compilation of paser osirix under linux(ubuntu) ok
authorJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Tue, 8 Feb 2011 15:54:54 +0000 (15:54 +0000)
committerJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Tue, 8 Feb 2011 15:54:54 +0000 (15:54 +0000)
lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx
lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.h

index 4c36214c9b7774b60deb4a6ebf8ba586ecd72453..b913b5b3900985c6a0133fbdaf3d60462beaef22 100644 (file)
@@ -470,12 +470,20 @@ void      OsirixParserErrorHandler::error (const SAXParseException &exc){
        char c[1000];
        errormsg = "Column ";
 //     errormsg +=     itoa(exc.getColumnNumber(),c,10);
+#ifdef WIN32
        sprintf_s(c,"%d",(int)(exc.getColumnNumber()));
+#else
+       sprintf(c,"%d",(int)(exc.getColumnNumber()));
+#endif
        errormsg +=     std::string(c);
 
        errormsg += " Line ";
 //     errormsg +=     itoa(exc.getLineNumber(),c,10);
+#ifdef WIN32
        sprintf_s(c,"%d",(int)(exc.getLineNumber()));
+#else
+       sprintf(c,"%d",(int)(exc.getLineNumber()));
+#endif
        errormsg +=     std::string(c);
 
        errormsg += " ";
@@ -487,12 +495,20 @@ void      OsirixParserErrorHandler::fatalError (const SAXParseException &exc){
        char c[1000];
        errormsg = "Column ";
 //     errormsg +=     itoa(exc.getColumnNumber(),c,10);
+#ifdef WIN32
        sprintf_s(c,"%d",(int)(exc.getColumnNumber()));
+#else
+       sprintf(c,"%d",(int)(exc.getColumnNumber()));
+#endif
        errormsg +=     std::string(c);
 
        errormsg += " Line ";
 //     errormsg +=     itoa(exc.getLineNumber(),c,10);
+#ifdef WIN32
        sprintf_s(c,"%d",(int)(exc.getLineNumber()));
+#else
+       sprintf(c,"%d",(int)(exc.getLineNumber()));
+#endif
        errormsg +=     std::string(c);
 
        errormsg += " ";
index 61aecea6b8ea90c4367725282a87c43ae95dd4db..2b19e444e6be1ed4df148c4c8673f290b09681aa 100644 (file)
@@ -97,7 +97,7 @@ private:
        double _spacing[3];
        int _extent[6];
 
-       typedef vector<vector<double>> vectorXYZ;
+       typedef vector< vector<double> > vectorXYZ;
        std::map<int, vectorXYZ> contoursmapMM; 
        std::map<int, vectorXYZ> contoursmapPX;