SDL_Compat.h 432 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. /*
  3. * SDL_Compat.h, part of VCMI engine
  4. *
  5. * Authors: listed in file AUTHORS in main folder
  6. *
  7. * License: GNU General Public License v2.0 or later
  8. * Full text of license available in license.txt file, in main folder
  9. *
  10. */
  11. #include <SDL_version.h>
  12. #if (SDL_MAJOR_VERSION == 2)
  13. #include <SDL_keycode.h>
  14. typedef int SDLX_Coord;
  15. typedef int SDLX_Size;
  16. #else
  17. #error "unknown or unsupported SDL version"
  18. #endif