diff --git a/.vscode/settings.json b/.vscode/settings.json index 96e1e75..91f1f52 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,11 @@ { "files.associations": { "regex": "cpp", - "*.pngc": "cpp" + "*.pngc": "cpp", + "*.inc": "c", + "vector": "cpp", + "string.h": "c", + "libpq-fe.h": "c" }, "cmake.configureArgs": [ diff --git a/CMakeLists.txt b/CMakeLists.txt index ad0a3f8..5371c12 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,6 +79,7 @@ file(GLOB_RECURSE SOURCES ########################################################## add_executable(${PROJECT_NAME} ) +target_compile_definitions(${PROJECT_NAME} PRIVATE $<$:_DEBUG>) target_sources(${PROJECT_NAME} PUBLIC pgAdmin3.cpp ${SOURCES}) if(CROSS_COMPILE STREQUAL "Windows") ENABLE_LANGUAGE(RC) diff --git a/frm/mathplot.cpp b/frm/mathplot.cpp index 75b2bc0..358726e 100644 --- a/frm/mathplot.cpp +++ b/frm/mathplot.cpp @@ -43,7 +43,7 @@ // Memory leak debugging #ifdef _DEBUG -#define new DEBUG_NEW +//#define new DEBUG_NEW #endif // Legend margins