Skip to content
Permalink
Browse files

Patched in Jürgens MSVC logger improvements.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7311 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Nov 1, 2007
1 parent d374337 commit 5cb41238e6023ea1ebaf87c7990e954a00c79b56
Showing with 9 additions and 0 deletions.
  1. +3 −0 CMakeLists.txt
  2. +2 −0 src/app/main.cpp
  3. +4 −0 src/core/qgslogger.cpp
@@ -152,6 +152,9 @@ IF (WIN32)
# Turn on defines for non standard maths stuff
ADD_DEFINITIONS(-D_USE_MATH_DEFINES)

# Turn off deprecation warnings
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
ADD_DEFINITIONS(-D_CRT_NONSTDC_NO_WARNINGS)
# Some file access stuff not defined in native win32
# environment
ADD_DEFINITIONS(-DF_OK=0)
@@ -229,8 +229,10 @@ int main(int argc, char *argv[])
_set_fmode(_O_BINARY);
#endif

#ifndef _MSC_VER
// Set up the custom qWarning/qDebug custom handler
qInstallMsgHandler( myMessageOutput );
#endif

/////////////////////////////////////////////////////////////////
// Command line options 'behaviour' flag setup
@@ -47,7 +47,11 @@ void QgsLogger::debug(const QString& msg, int debuglevel, const char* file, cons
}
else
{
#ifndef _MSC_VER
qDebug("%s: %d: (%s) %s", file, line, function, msg.toLocal8Bit().data());
#else
qDebug("%s(%d) : (%s) %s", file, line, function, msg.toLocal8Bit().data());
#endif
}
}
}

0 comments on commit 5cb4123

Please sign in to comment.
You can’t perform that action at this time.