Fixed bug 3781 - unbalanced #pragma pack(pop) in close_code.h SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Mon, 28 Aug 2017 09:38:12 -0700
branchSDL-1.2
changeset 113892c67e7e5a106
parent 11362 464908ca2d22
child 11521 e597fa82484b
Fixed bug 3781 - unbalanced #pragma pack(pop) in close_code.h

Ozkan Sezer

Revision 288 (http://hg.libsdl.org/SDL/rev/2f5a6062db86) excluded the
Watcom compiler from forcing 4 byte structure packing in begin_code.h.
However, it missed updating close_code.h, which now has an unbalanced
#pragma pack(pop) if the compiler is Watcom. The issue seems to have
crawled into SDL2, too.
include/close_code.h
     1.1 --- a/include/close_code.h	Sun Aug 27 19:03:15 2017 -0700
     1.2 +++ b/include/close_code.h	Mon Aug 28 09:38:12 2017 -0700
     1.3 @@ -32,7 +32,7 @@
     1.4   *  @file close_code.h
     1.5   *  Reset structure packing at previous byte alignment
     1.6   */
     1.7 -#if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__)  || defined(__BORLANDC__)
     1.8 +#if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__)
     1.9  #ifdef __BORLANDC__
    1.10  #pragma nopackwarning
    1.11  #endif