From cb127af7866a5e58b1457b0dfae96832abeda379 Mon Sep 17 00:00:00 2001 From: maxcodehack Date: Tue, 17 Nov 2020 19:13:17 +0000 Subject: [PATCH] Add example to SDL git-svn-id: svn://kolibrios.org@8214 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../sdk/sources/SDL-1.2.2_newlib/src/SYSCALL/src/Makefile | 8 ++++---- .../sources/SDL-1.2.2_newlib/src/thread/SDL_systhread_c.h | 2 +- .../sdk/sources/SDL-1.2.2_newlib/src/video/SDL_gamma.c | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/contrib/sdk/sources/SDL-1.2.2_newlib/src/SYSCALL/src/Makefile b/contrib/sdk/sources/SDL-1.2.2_newlib/src/SYSCALL/src/Makefile index 522aa0a6d6..6e68ef6272 100755 --- a/contrib/sdk/sources/SDL-1.2.2_newlib/src/SYSCALL/src/Makefile +++ b/contrib/sdk/sources/SDL-1.2.2_newlib/src/SYSCALL/src/Makefile @@ -7,12 +7,12 @@ CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 INCLUDES = -I ../include -I $(SDK_DIR)/sources/newlib/libc/include -FITZ_SRC := $(notdir $(wildcard *.c)) -OBJECTS = $(patsubst %.c, %.o, $(FITZ_SRC)) +SYSCALL_SRC := $(notdir $(wildcard *.c)) +OBJECTS = $(patsubst %.c, %.o, $(SYSCALL_SRC)) -default: $(patsubst %.c,%.o,$(FITZ_SRC)) +default: $(patsubst %.c,%.o,$(SYSCALL_SRC)) -%.o : %.c Makefile $(FITZ_SRC) +%.o : %.c Makefile $(SYSCALL_SRC) $(CC) $(CFLAGS) $(INCLUDES) -o $@ $< clean: diff --git a/contrib/sdk/sources/SDL-1.2.2_newlib/src/thread/SDL_systhread_c.h b/contrib/sdk/sources/SDL-1.2.2_newlib/src/thread/SDL_systhread_c.h index 6adbb60572..de3ac347f5 100755 --- a/contrib/sdk/sources/SDL-1.2.2_newlib/src/thread/SDL_systhread_c.h +++ b/contrib/sdk/sources/SDL-1.2.2_newlib/src/thread/SDL_systhread_c.h @@ -26,4 +26,4 @@ /* Stub until we implement threads on this platform */ typedef int SYS_ThreadHandle; -#define DISABLE_THREADS +//#define DISABLE_THREADS diff --git a/contrib/sdk/sources/SDL-1.2.2_newlib/src/video/SDL_gamma.c b/contrib/sdk/sources/SDL-1.2.2_newlib/src/video/SDL_gamma.c index c847e1f48d..be4489fc7d 100755 --- a/contrib/sdk/sources/SDL-1.2.2_newlib/src/video/SDL_gamma.c +++ b/contrib/sdk/sources/SDL-1.2.2_newlib/src/video/SDL_gamma.c @@ -29,6 +29,7 @@ #include #endif #include +#include #include "SDL_error.h" #include "SDL_sysvideo.h"