HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #378

Ticket #378: quake3-io2306.patch

File quake3-io2306.patch, 9.4 KB (added by jstressman, 3 years ago)
  • code/botlib/botlib.h

    diff -urb --exclude=.svn quake3-io2306/code/botlib/botlib.h quake3-io2306-jstressman/code/botlib/botlib.h
    old new  
    170170typedef struct botlib_import_s 
    171171{ 
    172172        //print messages from the bot library 
    173         void            (QDECL *Print)(int type, char *fmt, ...) __attribute__ ((format (printf, 2, 3))); 
     173//      void            (QDECL *Print)(int type, char *fmt, ...) __attribute__ ((format (printf, 2, 3))); 
     174        void            (QDECL *Print)(int type, char *fmt, ...); 
    174175        //trace a bbox through the world 
    175176        void            (*Trace)(bsp_trace_t *trace, vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, int passent, int contentmask); 
    176177        //trace a bbox against a specific entity 
  • code/qcommon/net_ip.c

    diff -urb --exclude=.svn quake3-io2306/code/qcommon/net_ip.c quake3-io2306-jstressman/code/qcommon/net_ip.c
    old new  
    7373#       include <sys/types.h> 
    7474#       include <sys/time.h> 
    7575#       include <unistd.h> 
    76 #       if !defined(__sun) && !defined(__sgi) 
     76#       if !defined(__sun) && !defined(__sgi) && !defined(__HAIKU__) 
    7777#               include <ifaddrs.h> 
    7878#       endif 
    7979 
    … …  
    132132 
    133133#define MAX_IPS         32 
    134134 
     135#ifdef __HAIKU__ 
     136        typedef uint8_t sa_family_t; 
     137#endif 
     138 
    135139typedef struct 
    136140{ 
    137141        char ifname[IF_NAMESIZE]; 
  • code/qcommon/q_platform.h

    diff -urb --exclude=.svn quake3-io2306/code/qcommon/q_platform.h quake3-io2306-jstressman/code/qcommon/q_platform.h
    old new  
    3535 
    3636#else 
    3737 
    38 #if (defined _M_IX86 || defined __i386__) && !defined(C_ONLY) 
     38#if (defined _M_IX86 || defined __i386__) && !defined(C_ONLY) && !defined(__HAIKU__) 
    3939#define id386 1 
    4040#else 
    4141#define id386 0 
    … …  
    229229 
    230230#endif 
    231231 
     232 
     233//================================================================= HAIKU === 
     234 
     235#ifdef __HAIKU__ 
     236 
     237#define OS_STRING "haiku" 
     238#define ID_INLINE inline 
     239#define PATH_SEP '/' 
     240#define ARCH_STRING "i386" 
     241#define Q3_LITTLE_ENDIAN 
     242#define DLL_EXT ".so" 
     243 
     244#endif 
     245 
     246 
    232247//=================================================================== BSD === 
    233248 
    234249#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) 
  • code/renderer/tr_image_pcx.c

    diff -urb --exclude=.svn quake3-io2306/code/renderer/tr_image_pcx.c quake3-io2306-jstressman/code/renderer/tr_image_pcx.c
    old new  
    4545        unsigned short  palette_type; 
    4646        unsigned short  hscreensize, vscreensize; 
    4747        char    filler[54]; 
    48         unsigned char   data[]; 
     48        unsigned char   *data; 
    4949} pcx_t; 
    5050 
    5151void R_LoadPCX ( const char *filename, byte **pic, int *width, int *height) 
  • code/renderer/tr_public.h

    diff -urb --exclude=.svn quake3-io2306/code/renderer/tr_public.h quake3-io2306-jstressman/code/renderer/tr_public.h
    old new  
    106106// 
    107107typedef struct { 
    108108        // print message on the local console 
    109         void    (QDECL *Printf)( int printLevel, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); 
     109//      void    (QDECL *Printf)( int printLevel, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); 
     110        void    (QDECL *Printf)( int printLevel, const char *fmt, ...); 
    110111 
    111112        // abort the game 
    112         void    (QDECL *Error)( int errorLevel, const char *fmt, ...) __attribute__ ((noreturn, format (printf, 2, 3))); 
     113//      void    (QDECL *Error)( int errorLevel, const char *fmt, ...) __attribute__ ((noreturn, format (printf, 2, 3))); 
     114        void    (QDECL *Error)( int errorLevel, const char *fmt, ...); 
    113115 
    114116        // milliseconds should only be used for profiling, never 
    115117        // for anything game related.  Get time from the refdef 
  • code/sys/sys_main.c

    diff -urb --exclude=.svn quake3-io2306/code/sys/sys_main.c quake3-io2306-jstressman/code/sys/sys_main.c
    old new  
    3131#include <ctype.h> 
    3232#include <errno.h> 
    3333 
     34#ifdef __HAIKU__ 
     35#define SIGIOT SIGABRT 
     36#endif 
     37 
    3438#ifndef DEDICATED 
    3539#ifdef USE_LOCAL_HEADERS 
    3640#       include "SDL.h" 
  • code/sys/sys_unix.c

    diff -urb --exclude=.svn quake3-io2306/code/sys/sys_unix.c quake3-io2306-jstressman/code/sys/sys_unix.c
    old new  
    3939#include <fenv.h> 
    4040#include <sys/wait.h> 
    4141 
     42#ifdef __HAIKU__ 
     43#define SIGIOT SIGABRT 
     44#endif 
     45 
    4246qboolean stdinIsATTY; 
    4347 
    4448// Used to determine where to store user-specific files 
  • code/tools/lcc/etc/lcc.c

    diff -urb --exclude=.svn quake3-io2306/code/tools/lcc/etc/lcc.c quake3-io2306-jstressman/code/tools/lcc/etc/lcc.c
    old new  
    4848extern int suffix(char *, char *[], int); 
    4949extern char *tempname(char *); 
    5050 
    51 #ifndef __sun 
     51#if !defined(__sun) && !defined(__HAIKU__) 
    5252extern int getpid(void); 
    5353#endif 
    5454 
    … …  
    279279#else 
    280280 
    281281#define _P_WAIT 0 
    282 #ifndef __sun 
     282#if !defined(__sun) && !defined(__HAIKU__) 
    283283extern int fork(void); 
    284284#endif 
    285285extern int wait(int *); 
  • code/ui/ui_shared.h

    diff -urb --exclude=.svn quake3-io2306/code/ui/ui_shared.h quake3-io2306-jstressman/code/ui/ui_shared.h
    old new  
    354354        void (*getBindingBuf)( int keynum, char *buf, int buflen ); 
    355355        void (*setBinding)( int keynum, const char *binding ); 
    356356        void (*executeText)(int exec_when, const char *text );   
    357         void (*Error)(int level, const char *error, ...) __attribute__ ((noreturn, format (printf, 2, 3))); 
    358         void (*Print)(const char *msg, ...) __attribute__ ((format (printf, 1, 2))); 
     357//      void (*Error)(int level, const char *error, ...) __attribute__ ((noreturn, format (printf, 2, 3))); 
     358//      void (*Print)(const char *msg, ...) __attribute__ ((format (printf, 1, 2))); 
     359        void (*Error)(int level, const char *error, ...); 
     360        void (*Print)(const char *msg, ...); 
    359361        void (*Pause)(qboolean b); 
    360362        int (*ownerDrawWidth)(int ownerDraw, float scale); 
    361363        sfxHandle_t (*registerSound)(const char *name, qboolean compressed); 
  • Makefile

    diff -urb --exclude=.svn quake3-io2306/Makefile quake3-io2306-jstressman/Makefile
    old new  
    396396else # ifeq Linux 
    397397 
    398398############################################################################# 
     399# SETUP AND BUILD -- HAIKU 
     400############################################################################# 
     401 
     402## Defaults 
     403LIB=lib 
     404 
     405INSTALL=install 
     406MKDIR=mkdir 
     407 
     408ifeq ($(PLATFORM),haiku) 
     409 
     410  BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \ 
     411    -pipe -DUSE_ICON $(shell sdl-config --cflags) 
     412 
     413  ifeq ($(USE_OPENAL),1) 
     414    BASE_CFLAGS += -DUSE_OPENAL 
     415    ifeq ($(USE_OPENAL_DLOPEN),1) 
     416      BASE_CFLAGS += -DUSE_OPENAL_DLOPEN 
     417    endif 
     418  endif 
     419 
     420  ifeq ($(USE_CURL),1) 
     421    BASE_CFLAGS += -DUSE_CURL 
     422    ifeq ($(USE_CURL_DLOPEN),1) 
     423      BASE_CFLAGS += -DUSE_CURL_DLOPEN 
     424    endif 
     425  endif 
     426 
     427  ifeq ($(USE_CODEC_VORBIS),1) 
     428    BASE_CFLAGS += -DUSE_CODEC_VORBIS 
     429  endif 
     430 
     431  OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer 
     432 
     433  ifeq ($(ARCH),i386) 
     434    OPTIMIZE = -O3 -march=i586 -fomit-frame-pointer -ffast-math \ 
     435      -funroll-loops -falign-loops=2 -falign-jumps=2 \ 
     436      -falign-functions=2 -fstrength-reduce 
     437    HAVE_VM_COMPILED=true 
     438  endif 
     439 
     440  ifneq ($(HAVE_VM_COMPILED),true) 
     441    BASE_CFLAGS += -DNO_VM_COMPILED 
     442  endif 
     443 
     444  SHLIBEXT=so 
     445  SHLIBCFLAGS=-fPIC 
     446  SHLIBLDFLAGS=-shared $(LDFLAGS) 
     447 
     448  THREAD_LDFLAGS=-lpthread 
     449  LDFLAGS=-lnetwork 
     450 
     451  CLIENT_LDFLAGS=$(shell sdl-config --libs) -lGL 
     452 
     453  ifeq ($(USE_OPENAL),1) 
     454    ifneq ($(USE_OPENAL_DLOPEN),1) 
     455      CLIENT_LDFLAGS += -lopenal 
     456    endif 
     457  endif 
     458 
     459  ifeq ($(USE_CURL),1) 
     460    ifneq ($(USE_CURL_DLOPEN),1) 
     461      CLIENT_LDFLAGS += -lcurl 
     462    endif 
     463  endif 
     464 
     465  ifeq ($(USE_CODEC_VORBIS),1) 
     466    CLIENT_LDFLAGS += -lvorbisfile -lvorbis -logg 
     467  endif 
     468 
     469  ifeq ($(ARCH),i386) 
     470    # linux32 make ... 
     471    BASE_CFLAGS += -m32 
     472    LDFLAGS+=-m32 
     473  endif 
     474 
     475  DEBUG_CFLAGS = $(BASE_CFLAGS) -g -O0 
     476  RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE) 
     477 
     478else # ifeq Haiku 
     479 
     480############################################################################# 
    399481# SETUP AND BUILD -- MAC OS X 
    400482############################################################################# 
    401483 
    … …  
    828910  SHLIBLDFLAGS=-shared 
    829911 
    830912endif #Linux 
     913endif #Haiku 
    831914endif #darwin 
    832915endif #mingw32 
    833916endif #FreeBSD 
    … …  
    9891072 
    9901073BASE_CFLAGS += -DPRODUCT_VERSION=\\\"$(VERSION)\\\" 
    9911074BASE_CFLAGS += -Wformat=2 -Wno-format-zero-length -Wformat-security -Wno-format-nonliteral 
    992 BASE_CFLAGS += -Wstrict-aliasing=2 -Wmissing-format-attribute 
    993 BASE_CFLAGS += -Wdisabled-optimization 
     1075#BASE_CFLAGS += -Wstrict-aliasing=2 -Wmissing-format-attribute 
     1076#BASE_CFLAGS += -Wdisabled-optimization 
    9941077BASE_CFLAGS += -Werror-implicit-function-declaration 
    9951078 
    9961079ifeq ($(V),1) 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/