SDL_Compat.h 427 B

1234567891011121314151617181920212223
  1. /*
  2. * SDL_Compat.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  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