changeset 619:fc1788e1ab04 trunk

[svn] Start building adplug.
author chainsaw
date Sun, 05 Feb 2006 13:58:33 -0800
parents e9cf6c7c6623
children 29ae4b6f4f92
files Plugins/Input/adplug/Makefile.in Plugins/Input/adplug/adplug-xmms.cc Plugins/Input/adplug/core/Makefile.in
diffstat 3 files changed, 6 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/adplug/Makefile.in	Sun Feb 05 13:32:51 2006 -0800
+++ b/Plugins/Input/adplug/Makefile.in	Sun Feb 05 13:58:33 2006 -0800
@@ -1,5 +1,5 @@
-include ../../../rules.mk
-include ../../../objective.mk
+include ../../../mk/rules.mk
+include ../../../mk/objective.mk
 
 SUBDIRS = core
 OBJECTIVE_LIBS = libadplug.so
@@ -14,3 +14,4 @@
 
 CFLAGS += -fPIC -DPIC $(GTK_CFLAGS) $(BINIO_CFLAGS) \
 	-I../../../intl -I../../.. -I./core
+CXXFLAGS = $(CFLAGS)
--- a/Plugins/Input/adplug/adplug-xmms.cc	Sun Feb 05 13:32:51 2006 -0800
+++ b/Plugins/Input/adplug/adplug-xmms.cc	Sun Feb 05 13:58:33 2006 -0800
@@ -393,6 +393,7 @@
 static void adplug_stop(void);
 static void adplug_play(char *filename);
 
+#if 0
 static void subsong_slider(GtkAdjustment *adj)
 {
   adplug_stop();
@@ -400,7 +401,6 @@
   adplug_play(plr.filename);
 }
 
-#if 0
 static void close_infobox(GtkDialog *infodlg)
 {
   // Forget our references to the instance of the "currently playing song" info
@@ -675,6 +675,7 @@
   plr.playing = false; // important! XMMS won't get a self-ended song without it.
   dbg_printf(".\n");
   g_thread_exit(NULL);
+  return(NULL);
 }
 
 // sampsize macro not useful anymore.
--- a/Plugins/Input/adplug/core/Makefile.in	Sun Feb 05 13:32:51 2006 -0800
+++ b/Plugins/Input/adplug/core/Makefile.in	Sun Feb 05 13:58:33 2006 -0800
@@ -11,12 +11,6 @@
 rol.cpp xsm.cpp adlibemu.c dro.cpp lds.cpp realopl.cpp analopl.cpp \
 temuopl.cpp msc.cpp rix.cpp
 
-# This is a hack. Throughout AdPlug, stricmp() is used to do caseless string
-# comparations. UNIX libc's don't support stricmp(), but do support the BSD
-# strcasecmp(), so we have to replace every occurance of stricmp() into
-# strcasecmp(). stricmp() seems to be Windows, but maybe also POSIX...
-AM_CPPFLAGS = -Dstricmp=strcasecmp
-
 noinst_HEADERS = adplug.h emuopl.h fmopl.h silentopl.h opl.h diskopl.h \
 a2m.h amd.h bam.h d00.h dfm.h hsc.h hsp.h imf.h ksm.h lds.h mid.h mkj.h mtk.h \
 protrack.h rad.h raw.h sa2.h sng.h u6m.h player.h fmc.h mad.h xad.h bmf.h \
@@ -25,5 +19,6 @@
 analopl.h temuopl.h msc.h rix.h
 
 CFLAGS += -fPIC -DPIC $(BINIO_CFLAGS) -I../../../../intl -I../../../..
+CXXFLAGS = $(CFLAGS) -Dstricmp=strcasecmp
 
 OBJECTS = ${SOURCES:.c=.o} ${SOURCES:.cpp=.o}