*: check defined(_WIN32) instead of defined(WIN32)
Only _WIN32 is defined by the compiler, and WIN32 is not standardized and may be missing. Closes #169
This commit is contained in:
@@ -78,7 +78,7 @@ GetParentPathImpl(typename Traits::const_pointer_type p)
|
||||
return typename Traits::string(Traits::CURRENT_DIRECTORY);
|
||||
if (sep == p)
|
||||
return typename Traits::string(p, p + 1);
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
if (Traits::IsDrive(p) && sep == p + 2)
|
||||
return typename Traits::string(p, p + 3);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user