From: Charles W. <cwi...@us...> - 2012-09-05 04:31:41
|
On 9/4/2012 4:43 PM, Earnie Boyd wrote: > I'm thinking that one of the following > styles be used and anything that is equal to WIN95 be common and > everything else be moved toward the end of the file with a construct > of one of the following. > > #if (_WIN32_WINNT>= _WIN32_WINNT_WIN2K) > ... > # if (_WIN32_WINNT>= _WIN32_WINNT_WINXP) > ... > #endif > #endif > > or > > #if (_WIN32_WINNT>= _WIN32_WINNT_WIN2K) > ... > #endif > > #if (_WIN32_WINNT>= _WIN32_WINNT_WINXP) > ... > #endif Both of these styles only work if you never have a situation where: a definition applies for $oldWindows, but should NOT be supported for $newWindows. I *THINK* this requirement is satisfied by the w32api part of things, given Microsoft's oft-derided backwards-compatibility fetish when it comes to the *syntax* of their API (the *sematics* of that API seems to change with the wind, however). Now, on the mingw-rt side of the fence, I think we probably do have items that are defined one way for $oldWindows but another way for $newWindows -- plus there's 32bit vs. any 64bit additions. -- Chuck |