INCLUDE(${PARAVIEW_USE_FILE})
-IF(WIN32)
- REMOVE_DEFINITIONS(-D_SECURE_SCL=0 -D_SECURE_SCL_THROWS=0)
- IF(NOT CMAKE_BUILD_TYPE STREQUAL "RELEASE" AND NOT CMAKE_BUILD_TYPE STREQUAL "Release")
- REMOVE_DEFINITIONS(-D_HAS_ITERATOR_DEBUGGING=0)
- ENDIF()
-ENDIF()
-
SET(_subdirs
MEDReader
# TableReader
//DEBUG macro
//#define __DEBUG
+#ifdef WIN32
+#include <limits>
+#define NAN std::numeric_limits<double>::quiet_NaN()
+#define isnan _isnan
+#endif
// Key words
#define MD "_metadata"
vtkJSONMap::iterator mit = vl.find(this->ShortNames[col]);
if(mit != vl.end()) {
newCol->SetValue(row, mit->second);
- vl.erase(mit);
- delete mit->first;
const char* c = mit->first;
+ vl.erase(mit);
+ delete c;
c = 0;
row++;
} else {
long old_pos = ftell(this->File);
fseek(this->File, b, SEEK_SET);
long data_s = e - b;
- result = new char[data_s];
+ result = new char[data_s + 1]; // + 1 for the '\0' symbol
result[0] = 0;
size_t nb_read = fread(result, sizeof(char), data_s, this->File);
result[nb_read] = '\0';
class vtkJSONInfoNode;
//---------------------------------------------------
-class vtkJSONException : public std::exception {
+class VTK_EXPORT vtkJSONException : public std::exception {
public:
vtkJSONException(const char *reason);
~vtkJSONException() throw ();
std::string Reason;
};
-class vtkJSONParser : public vtkObject
+class VTK_EXPORT vtkJSONParser : public vtkObject
{
public:
static vtkJSONParser* New();
)
ADD_EXECUTABLE(paraCmdLine ${pl_SOURCES})
-TARGET_LINK_LIBRARIES(paraCmdLine ${PYTHON_LIBRARIES} ${QT_LIBRARIES} pqApplicationComponents)
+TARGET_LINK_LIBRARIES(paraCmdLine ${PYTHON_LIBRARIES} ${QT_LIBRARIES} pqApplicationComponents vtkRenderingFreeTypeOpenGL)
#if !defined ( PYINTERP_H )
#define PYINTERP_H
-// ========================================================
-// set dllexport type for Win platform
-#ifdef WIN32
-# if defined PYINTERP_EXPORTS || defined PyInterp_EXPORTS
-# define PYINTERP_EXPORT __declspec(dllexport)
-# else
-# define PYINTERP_EXPORT __declspec(dllimport)
-# endif
-#else // WIN32
-# define PYINTERP_EXPORT
-#endif // WIN32
-
// ========================================================
// little trick - if we do not have debug python libraries
#ifdef _DEBUG
* When the class is instanciated the lock is acquired. It is released at destruction time.
* Copy construction (and hence assignation) is forbidden.
*/
-class PYINTERP_EXPORT PyLockWrapper
+class PyLockWrapper
{
public:
* \class PyObjWrapper
* \brief Utility class to properly handle the reference counting required on Python objects.
*/
-class PYINTERP_EXPORT PyObjWrapper
+class PyObjWrapper
{
PyObject* myObject;
public: