2003-11-16 19:56:32 +01:00
|
|
|
--- src/billard3d.c.orig Sat Nov 15 21:10:47 2003
|
|
|
|
+++ src/billard3d.c Sat Nov 15 21:12:13 2003
|
2003-02-19 18:12:33 +01:00
|
|
|
@@ -24,7 +24,7 @@
|
|
|
|
#include <string.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
-#include <endian.h>
|
2003-07-14 04:36:32 +02:00
|
|
|
+#include <sys/endian.h>
|
2003-02-19 18:12:33 +01:00
|
|
|
|
|
|
|
#ifndef USE_SDL
|
|
|
|
#include <GL/glut.h>
|
2003-11-16 19:56:32 +01:00
|
|
|
@@ -4960,7 +4960,7 @@
|
2003-07-14 04:36:32 +02:00
|
|
|
|
|
|
|
/* config file */
|
|
|
|
load_config( &confv, &confc, argv, argc );
|
|
|
|
- while( ( act_option = getopt_long_only(confc, confv, "+", long_options, &option_index) ) >= 0){
|
|
|
|
+ while( ( act_option = getopt_long(confc, confv, "+", long_options, &option_index) ) >= 0){
|
2003-11-16 19:56:32 +01:00
|
|
|
DPRINTF("processing option %d=%s\n",act_option,optarg);
|
2003-07-14 04:36:32 +02:00
|
|
|
process_option(act_option);
|
|
|
|
}
|
2003-11-16 19:56:32 +01:00
|
|
|
@@ -5058,7 +5058,7 @@
|
2003-02-19 18:12:33 +01:00
|
|
|
fread( &ball_ball_snd.data[SOUND_NULLOFFS*2], 1, ball_ball_snd.len-SOUND_NULLOFFS*2*2 , f );
|
|
|
|
fclose(f);
|
|
|
|
|
|
|
|
-#if __BYTE_ORDER == __BIG_ENDIAN
|
|
|
|
+#if _BYTE_ORDER == _BIG_ENDIAN
|
|
|
|
{
|
|
|
|
char *snd=ball_ball_snd.data;
|
|
|
|
for(i=0;i<ball_ball_snd.len;i+=2)
|