SF.net SVN: geany-plugins:[926] trunk/geany-plugins/pretty-printer/src

ctabin at users.sourceforge.net ctabin at xxxxx
Sat Sep 12 09:00:27 UTC 2009


Revision: 926
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=926&view=rev
Author:   ctabin
Date:     2009-09-12 09:00:27 +0000 (Sat, 12 Sep 2009)

Log Message:
-----------
Fixed an extern declaration that was missing to compile with -fno-common option

Modified Paths:
--------------
    trunk/geany-plugins/pretty-printer/src/ConfigUI.c
    trunk/geany-plugins/pretty-printer/src/ConfigUI.h
    trunk/geany-plugins/pretty-printer/src/Makefile.am

Modified: trunk/geany-plugins/pretty-printer/src/ConfigUI.c
===================================================================
--- trunk/geany-plugins/pretty-printer/src/ConfigUI.c	2009-09-10 20:04:49 UTC (rev 925)
+++ trunk/geany-plugins/pretty-printer/src/ConfigUI.c	2009-09-12 09:00:27 UTC (rev 926)
@@ -16,6 +16,7 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#define PP_CONFIG_UI_PPOPTIONS 
 #include "ConfigUI.h"
 
 GtkWidget* createPrettyPrinterConfigUI(GtkDialog* dialog)

Modified: trunk/geany-plugins/pretty-printer/src/ConfigUI.h
===================================================================
--- trunk/geany-plugins/pretty-printer/src/ConfigUI.h	2009-09-10 20:04:49 UTC (rev 925)
+++ trunk/geany-plugins/pretty-printer/src/ConfigUI.h	2009-09-12 09:00:27 UTC (rev 926)
@@ -26,6 +26,11 @@
 
 //========================================== VARIABLES ========================================================
 
+//just add the keyword extern if not in the ConfigUI.c
+#ifndef PP_CONFIG_UI_PPOPTIONS
+	extern
+#endif
+
 PrettyPrintingOptions* prettyPrintingOptions;
 
 //========================================== FUNCTIONS ========================================================

Modified: trunk/geany-plugins/pretty-printer/src/Makefile.am
===================================================================
--- trunk/geany-plugins/pretty-printer/src/Makefile.am	2009-09-10 20:04:49 UTC (rev 925)
+++ trunk/geany-plugins/pretty-printer/src/Makefile.am	2009-09-12 09:00:27 UTC (rev 926)
@@ -10,5 +10,5 @@
 	ConfigUI.h \
 	ConfigUI.c
 
-pretty_print_la_CFLAGS = $(AM_CFLAGS) $(LIBXML_CFLAGS) -Wall
+pretty_print_la_CFLAGS = $(AM_CFLAGS) $(LIBXML_CFLAGS) -Wall -fno-common
 pretty_print_la_LIBADD = $(COMMONLIBS) $(LIBXML_LIBS)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list