mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
uppsrc: SDL2 project template improved
git-svn-id: svn://ultimatepp.org/upp/trunk@15953 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7f85b423df
commit
7db9db8e64
1 changed files with 6 additions and 6 deletions
|
|
@ -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:>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue