$PROTOCOL_LIST \
if test "$targetos" = darwin; then
- echo "#define CONFIG_DARWIN 1" >> $TMPH
+ echo "#define SYS_DARWIN 1" >> $TMPH
fi
echo "#define restrict $_restrict" >> $TMPH
w = 640;
h = 480;
}
-#ifndef CONFIG_DARWIN
+#ifndef SYS_DARWIN
screen = SDL_SetVideoMode(w, h, 0, flags);
#else
/* setting bits_per_pixel = 0 or 32 causes blank video on OS X */
video_disable = 1;
}
flags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER;
-#if !defined(__MINGW32__) && !defined(CONFIG_DARWIN)
+#if !defined(__MINGW32__) && !defined(SYS_DARWIN)
flags |= SDL_INIT_EVENTTHREAD; /* Not supported on win32 or darwin */
#endif
if (SDL_Init (flags)) {
extern int mm_flags;
-#if defined(HAVE_ALTIVEC) && !defined(CONFIG_DARWIN)
+#if defined(HAVE_ALTIVEC) && !defined(SYS_DARWIN)
#define pixel altivec_pixel
#include <altivec.h>
#undef pixel
#include "dsputil_altivec.h"
-#ifdef CONFIG_DARWIN
+#ifdef SYS_DARWIN
#include <sys/sysctl.h>
#elif __AMIGAOS4__
#include <exec/exec.h>
canjump = 0;
siglongjmp (jmpbuf, 1);
}
-#endif /* CONFIG_DARWIN */
+#endif /* SYS_DARWIN */
int sad16_x2_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
{
return 0;
#else /* __AMIGAOS4__ */
-#ifdef CONFIG_DARWIN
+#ifdef SYS_DARWIN
int sels[2] = {CTL_HW, HW_VECTORUNIT};
int has_vu = 0;
size_t len = sizeof(has_vu);
err = sysctl(sels, 2, &has_vu, &len, NULL, 0);
if (err == 0) return (has_vu != 0);
-#else /* CONFIG_DARWIN */
+#else /* SYS_DARWIN */
/* no Darwin, do it the brute-force way */
/* this is borrowed from the libmpeg2 library */
{
return 1;
}
}
-#endif /* CONFIG_DARWIN */
+#endif /* SYS_DARWIN */
return 0;
#endif /* __AMIGAOS4__ */
}
#define WORD_s2 0x18,0x19,0x1a,0x1b
#define WORD_s3 0x1c,0x1d,0x1e,0x1f
-#ifdef CONFIG_DARWIN
+#ifdef SYS_DARWIN
#define vcprm(a,b,c,d) (const vector unsigned char)(WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d)
#else
#define vcprm(a,b,c,d) (const vector unsigned char){WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d}
#define FLOAT_p 1.
-#ifdef CONFIG_DARWIN
+#ifdef SYS_DARWIN
#define vcii(a,b,c,d) (const vector float)(FLOAT_ ## a, FLOAT_ ## b, FLOAT_ ## c, FLOAT_ ## d)
#else
#define vcii(a,b,c,d) (const vector float){FLOAT_ ## a, FLOAT_ ## b, FLOAT_ ## c, FLOAT_ ## d}
#include <altivec.h>
#endif
-#ifdef CONFIG_DARWIN
+#ifdef SYS_DARWIN
# ifndef __MWERKS__
# define AVV(x...) (x)
# else
#endif
-#endif /* CONFIG_DARWIN */
+#endif /* SYS_DARWIN */
#ifndef __MWERKS__
#define const_vector const vector
}
-#ifdef CONFIG_DARWIN
+#ifdef SYS_DARWIN
#define FOUROF(a) (a)
#else
// slower, for dumb non-apple GCC
#else
# if defined(ARCH_X86_64) && defined(PIC)
# define MANGLE(a) #a"(%%rip)"
-# elif defined(CONFIG_DARWIN)
+# elif defined(SYS_DARWIN)
# define MANGLE(a) "_" #a
# else
# define MANGLE(a) #a
#include "avutil.h"
-#ifdef CONFIG_DARWIN
+#ifdef SYS_DARWIN
#define AVV(x...) (x)
#else
#define AVV(x...) {x}