close_code.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. SDL - Simple DirectMedia Layer
  3. Copyright (C) 1997-2009 Sam Lantinga
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public
  6. License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public
  13. License along with this library; if not, write to the Free
  14. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  15. Sam Lantinga
  16. slouken@libsdl.org
  17. */
  18. /**
  19. * @file close_code.h
  20. * This file reverses the effects of begin_code.h and should be included
  21. * after you finish any function and structure declarations in your headers
  22. */
  23. #undef _begin_code_h
  24. /**
  25. * @file close_code.h
  26. * Reset structure packing at previous byte alignment
  27. */
  28. #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__) || defined(__BORLANDC__)
  29. #ifdef __BORLANDC__
  30. #pragma nopackwarning
  31. #endif
  32. #if (defined(__MWERKS__) && defined(__MACOS__))
  33. #pragma options align=reset
  34. #pragma enumsalwaysint reset
  35. #else
  36. #pragma pack(pop)
  37. #endif
  38. #endif /* Compiler needs structure packing set */