[rhythmbox] Use C-only for the browser plugin



commit 3e162c21ccf892a02a81f5b737862d0eb82c2b15
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Sep 28 18:46:12 2009 +0100

    Use C-only for the browser plugin
    
    Because C++ sucks, and mangles our nice symbol names, which
    means the browsers can't find them.
    
    I'm not debugging C++ linkers.

 configure.ac                                       |    1 -
 podcast/Makefile.am                                |    4 ++--
 ...box-itms-plugin.cpp => rhythmbox-itms-plugin.c} |    1 +
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e92aa3a..db6ed1f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,6 @@ IT_PROG_INTLTOOL([0.35.0])
 
 AC_ISC_POSIX
 AC_PROG_CC
-AC_PROG_CXX
 AC_STDC_HEADERS
 AM_PROG_LIBTOOL
 m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
diff --git a/podcast/Makefile.am b/podcast/Makefile.am
index f944c58..2c0801a 100644
--- a/podcast/Makefile.am
+++ b/podcast/Makefile.am
@@ -41,13 +41,13 @@ AM_CFLAGS =						\
 
 librbpodcast_la_LDFLAGS = -export-dynamic
 
-PLUGIN_FILES = rhythmbox-itms-plugin.cpp npapi.h npupp.h npruntime.h
+PLUGIN_FILES = rhythmbox-itms-plugin.c npapi.h npupp.h npruntime.h
 
 if ENABLE_BROWSER_PLUGIN
 plugindir = $(MOZILLA_PLUGINDIR)
 plugin_LTLIBRARIES = librhythmbox-itms-detection-plugin.la
 librhythmbox_itms_detection_plugin_la_SOURCES = $(PLUGIN_FILES)
-librhythmbox_itms_detection_plugin_la_CXXFLAGS = -I$(top_srcdir)/podcast
+librhythmbox_itms_detection_plugin_la_CFLAGS = -I$(top_srcdir)/podcast
 
 librhythmbox_itms_detection_plugin_la_LDFLAGS = \
 	-avoid-version	\
diff --git a/podcast/rhythmbox-itms-plugin.cpp b/podcast/rhythmbox-itms-plugin.c
similarity index 99%
rename from podcast/rhythmbox-itms-plugin.cpp
rename to podcast/rhythmbox-itms-plugin.c
index fbe0de1..a4be72a 100644
--- a/podcast/rhythmbox-itms-plugin.cpp
+++ b/podcast/rhythmbox-itms-plugin.c
@@ -26,6 +26,7 @@
 
 #include "config.h"
 
+#define bool int
 #include <string.h>
 #include <npupp.h>
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]