Advertisement
Manual_dev

Cross Platform SDL2 includes

Jul 8th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. /*
  2. Platform Specific SDL2 includes
  3.  
  4. */
  5. #ifdef _WIN32
  6.  
  7. #include <SDL.h>
  8. #include <SDL_image.h>
  9. #include <SDL_mixer.h>
  10. #include <SDL_ttf.h>
  11.  
  12. #elif __APPLE__
  13.  
  14. #include<SDL2/SDL.h>
  15. #include<SDL2/SDL_image.h>
  16. #include<SDL2/SDL_mixer.h>
  17. #include<SDL2/SDL_ttf.h>
  18.  
  19. #elif __linux__
  20.  
  21. #include<SDL2/SDL.h>
  22. #include<SDL2/SDL_image.h>
  23. #include<SDL2/SDL_mixer.h>
  24. #include<SDL2/SDL_ttf.h>
  25.  
  26. #endif
  27.  
  28. //Standard includes
  29. #include<iostream>
  30.  
  31. int main( int argc, char* args[] )
  32. {
  33.  
  34. std::cout << "It works!" <<std::endl;
  35. return 0;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement