]> git.mxchange.org Git - simgear.git/commit
Use _WIN32 instead of SG_WINDOWS for tests in simgear::strutils::error_string()
authorFlorent Rougon <f.rougon@free.fr>
Fri, 13 May 2016 09:49:33 +0000 (11:49 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
commitae1acdce92260aa9922462610b86899623be10a0
treeab5371ce25761a3b742ac7b94bcac63404ffbe53
parentcb6406361061578db779ada90624374f325bfbb9
Use _WIN32 instead of SG_WINDOWS for tests in simgear::strutils::error_string()

Since Cygwin has SG_WINDOWS defined but is likely to expose a POSIX or
GNU-like interface, using _WIN32 to decide whether Windows-specific
functions are available seems more appropriate than SG_WINDOWS to me.
simgear/misc/strutils.cxx
simgear/misc/strutils_test.cxx