Fixed bug 3781 - unbalanced #pragma pack(pop) in close_code.h
authorSam Lantinga <slouken@libsdl.org>
Mon, 28 Aug 2017 09:41:00 -0700
changeset 113908244c62d8fbc
parent 11388 16b174adc603
child 11391 665376404df1
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	Mon Aug 28 02:30:41 2017 -0700
     1.2 +++ b/include/close_code.h	Mon Aug 28 09:41:00 2017 -0700
     1.3 @@ -29,7 +29,7 @@
     1.4  #undef _begin_code_h
     1.5  
     1.6  /* Reset structure packing at previous byte alignment */
     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