Opened 16 years ago

Last modified 16 years ago

#2198 closed defect

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

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 (last modified by Mateusz Łoskot)

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

if (_MSC_VER <= 1202)
#  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 (3)

by Mateusz Łoskot, 16 years ago

The #ifdef condition fix for Visual C++ 6.0

comment:1 by Mateusz Łoskot, 16 years ago

Keywords: vc6 added

comment:2 by Mateusz Łoskot, 16 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.