Ignore:
Timestamp:
05/02/06 06:35:49 (6 years ago)
Author:
flupke <flupke@…>
Children:
22b42454812c85824c87192deee05abca95400c4
Parents:
857a6261c268f3b5b020553a4ba51d93d916a9f7
git-committer:
flupke <flupke@…> (05/02/06 06:35:49)
Message:

Tout compile sans erreur, il ne reste plus qu'à combler les trous dans gamelib3/subsystems/sdl
Les makefile sont pas terribles non plus, à finir

git-svn-id:  http://kawa.selfip.org/svn/projects@299 532e76a9-45ae-c241-9c6d-8309ac6440cd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bor/openbor.c

    rb6049a8 r080ef6e  
    44*/ 
    55 
     6#include "defs.h" 
    67 
    78#include <malloc.h> 
    89#include <stdarg.h> 
    910#include <string.h> 
    10 #include <io.h> 
     11#ifdef __linux__ 
     12#  include <asm/io.h> 
     13#  include <dirent.h> 
     14#else 
     15#  include <io.h> 
     16#  include <conio.h> 
     17#  include <direct.h> 
     18#endif 
    1119#include <fcntl.h> 
    1220#include <stdio.h> 
    1321#include <stdlib.h> 
    14 #include <conio.h> 
    15 #include <direct.h> 
    16  
    17 #include "gamelib3\types.h" 
    18 #include "gamelib3\video.h" 
    19 #include "gamelib3\vga.h" 
    20 #include "gamelib3\screen.h" 
    21 #include "gamelib3\loadimg.h" 
    22 #include "gamelib3\bitmap.h" 
    23 #include "gamelib3\sprite.h" 
    24 #include "gamelib3\spriteq.h" 
    25 #include "gamelib3\font.h" 
    26 #include "gamelib3\timer.h" 
    27 #include "gamelib3\savepcx.h" 
    28 #include "gamelib3\rand32.h" 
    29 #include "gamelib3\soundmix.h" 
    30 #include "gamelib3\sblaster.h" 
    31 #include "gamelib3\keyboard.h" 
    32 #include "gamelib3\joy.h" 
    33 #include "gamelib3\control.h" 
    34 #include "gamelib3\draw.h" 
    35 #include "gamelib3\packfile.h" 
    36 #include "gamelib3\palette.h" 
    37 #include "gamelib3\anigif.h" 
    38 #include "gamelib3\texture.h" 
     22 
     23#include "gamelib3/types.h" 
     24#include "gamelib3/video.h" 
     25#include "gamelib3/vga.h" 
     26#include "gamelib3/screen.h" 
     27#include "gamelib3/loadimg.h" 
     28#include "gamelib3/bitmap.h" 
     29#include "gamelib3/sprite.h" 
     30#include "gamelib3/spriteq.h" 
     31#include "gamelib3/font.h" 
     32#include "gamelib3/timer.h" 
     33#include "gamelib3/savepcx.h" 
     34#include "gamelib3/rand32.h" 
     35#include "gamelib3/soundmix.h" 
     36#include "gamelib3/sblaster.h" 
     37#include "gamelib3/keyboard.h" 
     38#include "gamelib3/joy.h" 
     39#include "gamelib3/control.h" 
     40#include "gamelib3/draw.h" 
     41#include "gamelib3/packfile.h" 
     42#include "gamelib3/palette.h" 
     43#include "gamelib3/anigif.h" 
     44#include "gamelib3/texture.h" 
    3945 
    4046 
     
    784790 
    785791    while(direntp = readdir(dirp)){ 
    786  
     792       
     793#ifdef __linux__ 
     794        if(direntp->d_type == DT_REG){ 
     795#else 
    787796        if(!(direntp->d_attr & (_A_SUBDIR | _A_VOLID | _A_SUBDIR))){ 
     797#endif 
    788798 
    789799            // This is a file. Is it a PAK file? 
     
    31943204 
    31953205    level = NULL; 
    3196     free(holesprite); 
     3206    free((void*)holesprite); 
    31973207 
    31983208    levelpos = 0; 
     
    1068710697// ---------------------------------------------------------------------------- 
    1068810698 
    10689 void main(int argc, char **argv){ 
     10699int main(int argc, char **argv){ 
    1069010700 
    1069110701    int quit = 0; 
     
    1099911009        VERSION&0xFFFF 
    1100011010    ); 
    11001 } 
    11002  
    11003  
    11004  
    11005  
    11006  
    11007  
     11011 
     11012    return 0; 
     11013} 
     11014 
     11015 
     11016 
     11017 
     11018 
     11019 
Note: See TracChangeset for help on using the changeset viewer.