Ticket #378: ioquake-r1289-haiku.2.diff
| File ioquake-r1289-haiku.2.diff, 4.5 KB (added by aldeck, 5 years ago) |
|---|
-
code/tools/lcc/etc/lcc.c
48 48 extern int suffix(char *, char *[], int); 49 49 extern char *tempname(char *); 50 50 51 #if ndef __sun51 #if !defined(__sun) && !defined(__HAIKU__) 52 52 extern int getpid(void); 53 53 #endif 54 54 … … 219 219 #include <process.h> 220 220 #else 221 221 #define _P_WAIT 0 222 #if ndef __sun222 #if !defined(__sun) && !defined(__HAIKU__) 223 223 extern int fork(void); 224 224 #endif 225 225 extern int wait(int *); -
code/renderer/tr_image_pcx.c
45 45 unsigned short palette_type; 46 46 unsigned short hscreensize, vscreensize; 47 47 char filler[54]; 48 unsigned char data[];48 unsigned char *data; 49 49 } pcx_t; 50 50 51 51 void R_LoadPCX ( const char *filename, byte **pic, int *width, int *height) -
code/qcommon/q_platform.h
32 32 33 33 #else 34 34 35 #if (defined _M_IX86 || defined __i386__) && !defined(C_ONLY) 35 #if (defined _M_IX86 || defined __i386__) && !defined(C_ONLY) && !defined(__HAIKU__) 36 36 #define id386 1 37 37 #else 38 38 #define id386 0 … … 168 168 169 169 #endif 170 170 171 //================================================================= HAIKU === 172 173 #ifdef __HAIKU__ 174 175 #define OS_STRING "haiku" 176 #define ID_INLINE inline 177 #define PATH_SEP '/' 178 #define ARCH_STRING "i386" 179 #define Q3_LITTLE_ENDIAN 180 #define DLL_EXT ".so" 181 182 #endif 183 171 184 //=================================================================== BSD === 172 185 173 186 #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) -
code/sys/sys_main.c
31 31 #include <ctype.h> 32 32 #include <errno.h> 33 33 34 #ifdef __HAIKU__ 35 #define SIGIOT SIGABRT 36 #endif 37 34 38 #ifndef DEDICATED 35 39 #ifdef USE_LOCAL_HEADERS 36 40 # include "SDL.h" -
Makefile
284 284 else # ifeq Linux 285 285 286 286 ############################################################################# 287 # SETUP AND BUILD -- HAIKU 288 ############################################################################# 289 290 ## Defaults 291 LIB=lib 292 293 INSTALL=install 294 MKDIR=mkdir 295 296 ifeq ($(PLATFORM),haiku) 297 298 BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \ 299 -pipe -DUSE_ICON $(shell sdl-config --cflags) 300 301 ifeq ($(USE_OPENAL),1) 302 BASE_CFLAGS += -DUSE_OPENAL 303 ifeq ($(USE_OPENAL_DLOPEN),1) 304 BASE_CFLAGS += -DUSE_OPENAL_DLOPEN 305 endif 306 endif 307 308 ifeq ($(USE_CURL),1) 309 BASE_CFLAGS += -DUSE_CURL 310 ifeq ($(USE_CURL_DLOPEN),1) 311 BASE_CFLAGS += -DUSE_CURL_DLOPEN 312 endif 313 endif 314 315 ifeq ($(USE_CODEC_VORBIS),1) 316 BASE_CFLAGS += -DUSE_CODEC_VORBIS 317 endif 318 319 OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer 320 321 ifeq ($(ARCH),i386) 322 OPTIMIZE = -O3 -march=i586 -fomit-frame-pointer -ffast-math \ 323 -funroll-loops -falign-loops=2 -falign-jumps=2 \ 324 -falign-functions=2 -fstrength-reduce 325 HAVE_VM_COMPILED=true 326 endif 327 328 ifneq ($(HAVE_VM_COMPILED),true) 329 BASE_CFLAGS += -DNO_VM_COMPILED 330 endif 331 332 SHLIBEXT=so 333 SHLIBCFLAGS=-fPIC 334 SHLIBLDFLAGS=-shared $(LDFLAGS) 335 336 THREAD_LDFLAGS=-lpthread 337 LDFLAGS=-lnetwork 338 339 CLIENT_LDFLAGS=$(shell sdl-config --libs) -lGL 340 341 ifeq ($(USE_OPENAL),1) 342 ifneq ($(USE_OPENAL_DLOPEN),1) 343 CLIENT_LDFLAGS += -lopenal 344 endif 345 endif 346 347 ifeq ($(USE_CURL),1) 348 ifneq ($(USE_CURL_DLOPEN),1) 349 CLIENT_LDFLAGS += -lcurl 350 endif 351 endif 352 353 ifeq ($(USE_CODEC_VORBIS),1) 354 CLIENT_LDFLAGS += -lvorbisfile -lvorbis -logg 355 endif 356 357 ifeq ($(ARCH),i386) 358 # linux32 make ... 359 BASE_CFLAGS += -m32 360 LDFLAGS+=-m32 361 endif 362 363 DEBUG_CFLAGS = $(BASE_CFLAGS) -g -O0 364 RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE) 365 366 else # ifeq Haiku 367 368 ############################################################################# 287 369 # SETUP AND BUILD -- MAC OS X 288 370 ############################################################################# 289 371 … … 706 788 SHLIBLDFLAGS=-shared 707 789 708 790 endif #Linux 791 endif #Haiku 709 792 endif #darwin 710 793 endif #mingw32 711 794 endif #FreeBSD
