uppsrc: SDL2 project template improved

git-svn-id: svn://ultimatepp.org/upp/trunk@15953 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2021-05-16 14:42:03 +00:00
parent 7f85b423df
commit 7db9db8e64

View file

@ -8,10 +8,10 @@ option "U++ Core" upp;
#ifndef _<:PACKAGE:>_<:PACKAGE:>_h
#define _<:PACKAGE:>_<:PACKAGE:>_h
#ifdef PLATFORM_POSIX
#include <SDL2/SDL.h>
#else
#ifdef _WIN32
#include <SDL.h>
#else
#include <SDL2/SDL.h>
#endif
<:?upp:>
@ -20,10 +20,10 @@ option "U++ Core" upp;
#endif
@@<:PACKAGE:>.cpp
<:?header:>#include "<:PACKAGE:>.h"<:/:>#ifdef PLATFORM_POSIX
#include <SDL2/SDL.h>
#else
<:?header:>#include "<:PACKAGE:>.h"<:/:>#ifdef _WIN32
#include <SDL.h>
#else
#include <SDL2/SDL.h>
#endif<:.:>
<:?upp && !header:>