Opened 16 years ago

Last modified 16 years ago

#2198 closed defect

Incorrect condition checking Visual C++ version in cpl_string.h — at Initial Version

Reported by: Mateusz Łoskot Owned by: warmerdam
Priority: normal Milestone: 1.6.0
Component: default Version: svn-trunk
Severity: normal Keywords: cpl port string vc6
Cc: warmerdam

Description

In file cpl_string.h, #ifdef condition at line 160 should be changed from:

#if defined(_MSC_VER)
#  define MSVC_OLD_STUPID_BEHAVIOUR
#endif

to read

#if defined(_MSC_VER)
#  if (_MSC_VER <= 1202)
#    define MSVC_OLD_STUPID_BEHAVIOUR
#  endif
#endif

This problem is also related to discussion about #2179

Patch attached.

Change History (1)

by Mateusz Łoskot, 16 years ago

The #ifdef condition fix for Visual C++ 6.0

Note: See TracTickets for help on using tickets.