Change SDL example

git-svn-id: svn://kolibrios.org@8218 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
maxcodehack
2020-11-18 07:53:16 +00:00
parent fe0d0438ff
commit a561cc6cd0
7 changed files with 18 additions and 152 deletions

View File

@@ -1,7 +1,3 @@
# SDL build makefile_test
# writed by maxcodehack
CC = kos32-gcc
AR = kos32-ar
LD = kos32-ld
@@ -38,9 +34,9 @@ CFLAGS = -c -O2 -D_REENTRANT -I../include -I SYSCALL/include -I. -DPACKAGE=\"SDL
-fexpensive-optimizations -Wall -DENABLE_AUDIO -UDISABLE_AUDIO -DDISABLE_JOYSTICK \
-DDISABLE_CDROM -DDISABLE_THREADS -DENABLE_TIMERS \
-DUSE_ASMBLIT -Ihermes -Iaudio -Ivideo -Ievents \
-Ijoystick -Icdrom -Ithread -Itimer -Iendian -Ifile -DENABLE_MENUETOS \
-Ijoystick -Icdrom -Ithread -Itimer -Iendian -Ifile -DENABLE_KOLIBRIOS \
-DNO_SIGNAL_H -DDISABLE_STDIO -DNEED_SDL_GETENV -DENABLE_FILE -UDISABLE_FILE \
-D__MENUETOS__ -DDEBUG_VIDEO -UWIN32 -U_Win32 -U_WIN32 -U__MINGW32__ \
-D__KOLIBRIOS__ -DDEBUG_VIDEO -UWIN32 -U_Win32 -U_WIN32 -U__MINGW32__ \
-I../../newlib/libc/include/

View File

@@ -1,6 +0,0 @@
#include <libc/asm.h>
MK_C_SYM(_alloca)
sub %eax, %esp
mov (%esp,%eax),%eax
mov %eax, (%esp)
ret

View File

@@ -41,6 +41,6 @@ static char rcsid =
#define CANT_THREAD_EVENTS
#endif
#ifdef __MENUETOS__
#ifdef __KOLIBRIOS__
#define CANT_THREAD_EVENTS
#endif

View File

@@ -386,7 +386,7 @@ extern VideoBootStrap QZ_bootstrap;
#ifdef ENABLE_CYBERGRAPHICS
extern VideoBootStrap CGX_bootstrap;
#endif
#ifdef ENABLE_MENUETOS
#ifdef ENABLE_KOLIBRIOS
extern VideoBootStrap mosvideo_bootstrab;
#endif
/* This is the current video device */

View File

@@ -95,7 +95,7 @@ static VideoBootStrap *bootstrap[] = {
#ifdef ENABLE_PHOTON
&ph_bootstrap,
#endif
#ifdef ENABLE_MENUETOS
#ifdef ENABLE_KOLIBRIOS
&mosvideo_bootstrab,
#endif
NULL