summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-06 07:42:26 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-06 07:42:26 +0000
commit473e2824cba09c93e9afb40a127ad5f07704c7ae (patch)
treec2c3bc9f9498b3f399ac0a77b63ed919c690b105
parentf83e779ee4c356947770069f6ccc993d23e981e3 (diff)
downloadmpv-473e2824cba09c93e9afb40a127ad5f07704c7ae.tar.bz2
mpv-473e2824cba09c93e9afb40a127ad5f07704c7ae.tar.xz
Rename all preprocessor directives related to Apple / Mac OS X.
Switch them from a HAVE_ to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27420 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xconfigure24
-rw-r--r--input/input.c8
-rw-r--r--libao2/audio_out.c2
-rw-r--r--libmpcodecs/ad_qtaudio.c10
-rw-r--r--libmpcodecs/vd_qtvideo.c14
-rw-r--r--libmpdemux/demux_mov.c2
-rw-r--r--libvo/video_out.c4
7 files changed, 32 insertions, 32 deletions
diff --git a/configure b/configure
index 0f19aea6f6..6d53391734 100755
--- a/configure
+++ b/configure
@@ -3577,21 +3577,21 @@ EOF
if cc_check -framework Carbon -framework QuickTime -framework CoreAudio; then
_ld_extra="$_ld_extra -framework Carbon -framework QuickTime -framework CoreAudio -framework AudioUnit -framework AudioToolbox"
_coreaudio=yes
- _def_coreaudio='#define HAVE_COREAUDIO 1'
+ _def_coreaudio='#define CONFIG_COREAUDIO 1'
_aosrc="$_aosrc ao_macosx.c"
_aomodules="macosx $_aomodules"
- _def_quartz='#define HAVE_QUARTZ 1'
+ _def_quartz='#define CONFIG_QUARTZ 1'
_vosrc="$_vosrc vo_quartz.c"
_vomodules="quartz $_vomodules"
- _def_quicktime='#define HAVE_QUICKTIME 1'
+ _def_quicktime='#define CONFIG_QUICKTIME 1'
else
_macosx=no
_coreaudio=no
- _def_coreaudio='#undef HAVE_COREAUDIO'
+ _def_coreaudio='#undef CONFIG_COREAUDIO'
_noaomodules="macosx $_noaomodules"
- _def_quartz='#undef HAVE_QUARTZ'
+ _def_quartz='#undef CONFIG_QUARTZ'
_novomodules="quartz $_novomodules"
- _def_quicktime='#undef HAVE_QUICKTIME'
+ _def_quicktime='#undef CONFIG_QUICKTIME'
fi
cat > $TMPC <<EOF
#include <Carbon/Carbon.h>
@@ -3602,11 +3602,11 @@ EOF
_vosrc="$_vosrc vo_macosx.m"
_vomodules="macosx $_vomodules"
_ld_extra="$_ld_extra -framework Cocoa -framework QuartzCore -framework OpenGL"
- _def_corevideo='#define HAVE_COREVIDEO 1'
+ _def_corevideo='#define CONFIG_COREVIDEO 1'
_corevideo=yes
else
_novomodules="macosx $_novomodules"
- _def_corevideo='#undef HAVE_COREVIDEO'
+ _def_corevideo='#undef CONFIG_COREVIDEO'
_corevideo=no
fi
fi
@@ -3667,10 +3667,10 @@ EOF
cc_check -framework IOKit && tmp_run && _apple_remote=yes
fi
if test "$_apple_remote" = yes ; then
- _def_apple_remote='#define HAVE_APPLE_REMOTE 1'
+ _def_apple_remote='#define CONFIG_APPLE_REMOTE 1'
_ld_extra="$_ld_extra -framework IOKit"
else
- _def_apple_remote='#undef HAVE_APPLE_REMOTE'
+ _def_apple_remote='#undef CONFIG_APPLE_REMOTE'
fi
echores "$_apple_remote"
@@ -3693,9 +3693,9 @@ EOF
cc_check && tmp_run && _apple_ir=yes
fi
if test "$_apple_ir" = yes ; then
- _def_apple_ir='#define HAVE_APPLE_IR 1'
+ _def_apple_ir='#define CONFIG_APPLE_IR 1'
else
- _def_apple_ir='#undef HAVE_APPLE_IR'
+ _def_apple_ir='#undef CONFIG_APPLE_IR'
fi
echores "$_apple_ir"
fi #if linux
diff --git a/input/input.c b/input/input.c
index 9b37e9ca6c..bca690f392 100644
--- a/input/input.c
+++ b/input/input.c
@@ -436,7 +436,7 @@ static const mp_cmd_bind_t def_cmd_binds[] = {
{ { JOY_BTN2, 0 }, "volume 1"},
{ { JOY_BTN3, 0 }, "volume -1"},
#endif
-#ifdef HAVE_APPLE_REMOTE
+#ifdef CONFIG_APPLE_REMOTE
{ { AR_PLAY, 0}, "pause" },
{ { AR_PLAY_HOLD, 0}, "quit" },
{ { AR_NEXT, 0 }, "seek 30" },
@@ -568,7 +568,7 @@ static int use_joystick = 1, use_lirc = 1, use_lircc = 1;
static char* config_file = "input.conf";
/* Apple Remote */
-#ifdef HAVE_APPLE_REMOTE
+#ifdef CONFIG_APPLE_REMOTE
static int use_ar = 1;
#else
static int use_ar = 0;
@@ -1759,7 +1759,7 @@ mp_input_init(int use_gui) {
}
#endif
-#ifdef HAVE_APPLE_REMOTE
+#ifdef CONFIG_APPLE_REMOTE
if(use_ar) {
if(mp_input_ar_init() < 0)
mp_msg(MSGT_INPUT,MSGL_ERR,MSGTR_INPUT_INPUT_ErrCantInitAppleRemote);
@@ -1768,7 +1768,7 @@ mp_input_init(int use_gui) {
}
#endif
-#ifdef HAVE_APPLE_IR
+#ifdef CONFIG_APPLE_IR
if(use_ar) {
int fd = mp_input_appleir_init(ar_dev);
if(fd < 0)
diff --git a/libao2/audio_out.c b/libao2/audio_out.c
index a2d2872e24..d9e756146b 100644
--- a/libao2/audio_out.c
+++ b/libao2/audio_out.c
@@ -45,7 +45,7 @@ const ao_functions_t* const audio_out_drivers[] =
#ifdef CONFIG_WIN32WAVEOUT
&audio_out_win32,
#endif
-#ifdef HAVE_COREAUDIO
+#ifdef CONFIG_COREAUDIO
&audio_out_macosx,
#endif
#ifdef CONFIG_OSS_AUDIO
diff --git a/libmpcodecs/ad_qtaudio.c b/libmpcodecs/ad_qtaudio.c
index bd6daf9edd..ffd2a381bd 100644
--- a/libmpcodecs/ad_qtaudio.c
+++ b/libmpcodecs/ad_qtaudio.c
@@ -5,7 +5,7 @@
#include "config.h"
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
#include <QuickTime/QuickTimeComponents.h>
#endif
@@ -30,7 +30,7 @@ static ad_info_t info = {
LIBAD_EXTERN(qtaudio)
-#ifndef HAVE_QUICKTIME
+#ifndef CONFIG_QUICKTIME
typedef struct OpaqueSoundConverter* SoundConverter;
typedef unsigned long OSType;
typedef unsigned long UnsignedFixed;
@@ -164,7 +164,7 @@ static int loader_init()
mp_msg(MSGT_DECAUDIO,MSGL_DBG2,"loader_init DONE???\n");
return 0;
}
-#endif /* #ifndef HAVE_QUICKTIME */
+#endif /* #ifndef CONFIG_QUICKTIME */
static SoundConverter myConverter = NULL;
static SoundComponentData InputFormatInfo,OutputFormatInfo;
@@ -180,7 +180,7 @@ static int preinit(sh_audio_t *sh){
unsigned long WantedBufferSize=0; //the size you want your buffers to be
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
EnterMovies();
#else
if(loader_init()) return 0; // failed to load DLL
@@ -280,7 +280,7 @@ static void uninit(sh_audio_t *sh){
// FreeLibrary( qtime_qts );
// qtime_qts = NULL;
// printf("qt dll loader uninit done\n");
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
ExitMovies();
#endif
}
diff --git a/libmpcodecs/vd_qtvideo.c b/libmpcodecs/vd_qtvideo.c
index 4dd46caf84..2a7cf35ec7 100644
--- a/libmpcodecs/vd_qtvideo.c
+++ b/libmpcodecs/vd_qtvideo.c
@@ -4,7 +4,7 @@
#include "config.h"
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
#include <QuickTime/ImageCodec.h>
#define dump_ImageDescription(x)
#endif
@@ -30,7 +30,7 @@ LIBVD_EXTERN(qtvideo)
#include "mpbswap.h"
-#ifndef HAVE_QUICKTIME
+#ifndef CONFIG_QUICKTIME
#include "loader/qtx/qtxsdk/components.h"
HMODULE WINAPI LoadLibraryA(LPCSTR);
@@ -53,7 +53,7 @@ static ImageDescriptionHandle framedescHandle;
static HINSTANCE qtime_qts; // handle to the preloaded quicktime.qts
static HMODULE handler;
-#ifndef HAVE_QUICKTIME
+#ifndef CONFIG_QUICKTIME
static Component (*FindNextComponent)(Component prev,ComponentDescription* desc);
static OSErr (*GetComponentInfo)(Component prev,ComponentDescription* desc,Handle h1,Handle h2,Handle h3);
static long (*CountComponents)(ComponentDescription* desc);
@@ -88,7 +88,7 @@ static OSErr (*QTNewGWorldFromPtr)(GWorldPtr *gw,
void *baseAddr,
long rowBytes);
static OSErr (*NewHandleClear)(Size byteCount);
-#endif /* #ifndef HAVE_QUICKTIME */
+#endif /* #ifndef CONFIG_QUICKTIME */
// to set/get/query special features/parameters
static int control(sh_video_t *sh,int cmd,void* arg,...){
@@ -107,7 +107,7 @@ static int init(sh_video_t *sh){
ImageSubCodecDecompressCapabilities icap; // for ImageCodecInitialize()
codec_initialized = 0;
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
EnterMovies();
#else
@@ -154,7 +154,7 @@ static int init(sh_video_t *sh){
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"InitializeQTML returned %li\n",result);
// result=EnterMovies();
// printf("EnterMovies->%d\n",result);
-#endif /* HAVE_QUICKTIME */
+#endif /* CONFIG_QUICKTIME */
#if 0
memset(&desc,0,sizeof(desc));
@@ -293,7 +293,7 @@ static int init(sh_video_t *sh){
// uninit driver
static void uninit(sh_video_t *sh){
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
ExitMovies();
#endif
}
diff --git a/libmpdemux/demux_mov.c b/libmpdemux/demux_mov.c
index 2e6d5fc4c0..1164167140 100644
--- a/libmpdemux/demux_mov.c
+++ b/libmpdemux/demux_mov.c
@@ -25,7 +25,7 @@
#include "config.h"
-#ifdef HAVE_QUICKTIME
+#ifdef CONFIG_QUICKTIME
#include <QuickTime/QuickTime.h>
#include <QuickTime/ImageCompression.h>
#include <QuickTime/ImageCodec.h>
diff --git a/libvo/video_out.c b/libvo/video_out.c
index 083ad55dfa..836f7adc1a 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -125,10 +125,10 @@ const vo_functions_t* const video_out_drivers[] =
#ifdef CONFIG_DIRECTX
&video_out_directx,
#endif
-#ifdef HAVE_COREVIDEO
+#ifdef CONFIG_COREVIDEO
&video_out_macosx,
#endif
-#ifdef HAVE_QUARTZ
+#ifdef CONFIG_QUARTZ
&video_out_quartz,
#endif
#ifdef CONFIG_XMGA