Add -I$(top_srcdir)/glib so that gregex.h finds <glib.h>.
authorTor Lillqvist <tml@novell.com>
Thu, 15 Mar 2007 15:17:17 +0000 (15:17 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 15 Mar 2007 15:17:17 +0000 (15:17 +0000)
2007-03-15  Tor Lillqvist  <tml@novell.com>

* glib/gnulib/Makefile.am (INCLUDES): Add -I$(top_srcdir)/glib so
that gregex.h finds <glib.h>.

* glib/update-pcre/Makefille.am-1: Add -DGLIB_COMPILATION so that
we don't think g_ascii_table is dllimport.

* glib/pcre/Makefile.am: Corresponding change.

* glib/update-pcre/notdll.patch: New file. Drop
dllimport/dllexport magic for the pcre symbols.

* glib/update-pcre/Makefile.am: Dist it.

* glib/update-pcre/update.sh: Apply notdll.patch.

* glib/pcre/pcre.h: Corresponding change.

2007-03-15  Tor Lillqvist  <tml@novell.com>

* glib/gtypes.h: Add comment to avoid misleading people with the
large number of digits in G_PI etc. (#404338)

svn path=/trunk/; revision=5410

ChangeLog
glib/gnulib/Makefile.am
glib/gtypes.h
glib/pcre/Makefile.am
glib/pcre/pcre.h
glib/update-pcre/Makefile.am
glib/update-pcre/Makefile.am-1
glib/update-pcre/notdll.patch [new file with mode: 0644]
glib/update-pcre/update.sh

index 6da106479ec05d6d9634d32204cfa094af07023d..f94b20c588cf03168c4bbbfd504f3db2e799e4da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,27 @@
+2007-03-15  Tor Lillqvist  <tml@novell.com>
+
+       * glib/gnulib/Makefile.am (INCLUDES): Add -I$(top_srcdir)/glib so
+       that gregex.h finds <glib.h>.
+
+       * glib/update-pcre/Makefille.am-1: Add -DGLIB_COMPILATION so that
+       we don't think g_ascii_table is dllimport.
+
+       * glib/pcre/Makefile.am: Corresponding change.
+
+       * glib/update-pcre/notdll.patch: New file. Drop
+       dllimport/dllexport magic for the pcre symbols.
+
+       * glib/update-pcre/Makefile.am: Dist it.
+
+       * glib/update-pcre/update.sh: Apply notdll.patch.
+
+       * glib/pcre/pcre.h: Corresponding change.
+
+2007-03-15  Tor Lillqvist  <tml@novell.com>
+
+       * glib/gtypes.h: Add comment to avoid misleading people with the
+       large number of digits in G_PI etc. (#404338)
+
 2007-03-15  Tor Lillqvist  <tml@novell.com>
 
        * config.h.win32.in: Update to match what configure produces.
index 96c20a178fb3fd0c468449717456f78d908759e8..2387885d81b1e3bd7c16daa526cbbbfff41bc3c6 100644 (file)
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 
-INCLUDES = -I$(top_srcdir) -DG_LOG_DOMAIN=\"GLib\" \
+INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/glib -DG_LOG_DOMAIN=\"GLib\" \
        $(GLIB_DEBUG_FLAGS) -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION 
 
 noinst_LTLIBRARIES = libgnulib.la
index 21b55e7c952aa76e0c8c678bef0de620ca01ff04..eaeabd2a854931e0d8aae2013c610e78bf3c57c5 100644 (file)
@@ -93,6 +93,13 @@ typedef const gchar *   (*GTranslateFunc)       (const gchar   *str,
 
 /* Define some mathematical constants that aren't available
  * symbolically in some strict ISO C implementations.
+ *
+ * Note that the large number of digits used in these definitions
+ * doesn't imply that GLib or current computers in general would be
+ * able to handle floating point numbers with an accuracy like this.
+ * It's mostly an exercise in futility and future proofing. For
+ * extended precision floating point support, look somewhere else
+ * than GLib.
  */
 #define G_E     2.7182818284590452353602874713526624977572470937000
 #define G_LN2   0.69314718055994530941723212145817656807550013436026
index 61f8aa2940d67cb663402d45fb9d0a9ca58bf45d..928eb0f979b2464913fc77136f7e29900bd81781 100644 (file)
@@ -16,6 +16,7 @@ INCLUDES = \
        -I$(top_srcdir)/glib \
        @GLIB_DEBUG_FLAGS@ \
        -DG_DISABLE_DEPRECATED \
+       -DGLIB_COMPILATION \
        $(DEPRECATED_FLAGS)\
        $(WARN_CFLAGS) \
        $(PCRE_WARN_CFLAGS) \
index 1b29a18f31138958bbdb421366101b99905caa04..f3285644651e8cfa2bf0c533f7c8020607de9f82 100644 (file)
@@ -60,6 +60,8 @@ circumstance. */
 /* Win32 uses DLL by default; it needs special stuff for exported functions
 when building PCRE. */
 
+/* But don't do that when building as part of GLib */
+#if 0
 #ifdef _WIN32
 #  ifdef PCRE_DEFINITION
 #    ifdef DLL_EXPORT
@@ -71,6 +73,7 @@ when building PCRE. */
 #    endif
 #  endif
 #endif
+#endif
 
 /* Otherwise, we use the standard "extern". */
 
index ac7f82c112c84daba094f8042a4439f6292035b7..57af29d1857abc99d438a4a2714ecefbb5851c94 100644 (file)
@@ -4,5 +4,6 @@ EXTRA_DIST =                    \
        Makefile.am-2           \
        digitab.patch           \
        memory.patch            \
+       notdll.patch            \
        pcre_ucp_searchfuncs.c  \
        pcre_valid_utf8.c
index fb71e28e2cc1601ef781196f83012c6ab53f7976..c26708e4dd43cd0049891414b0099da8234e5169 100644 (file)
@@ -16,6 +16,7 @@ INCLUDES = \
        -I$(top_srcdir)/glib \
        @GLIB_DEBUG_FLAGS@ \
        -DG_DISABLE_DEPRECATED \
+       -DGLIB_COMPILATION \
        $(DEPRECATED_FLAGS)\
        $(WARN_CFLAGS) \
        $(PCRE_WARN_CFLAGS) \
diff --git a/glib/update-pcre/notdll.patch b/glib/update-pcre/notdll.patch
new file mode 100644 (file)
index 0000000..951da2b
--- /dev/null
@@ -0,0 +1,19 @@
+--- pcre/pcre.h        2006-07-05 13:28:01.000000000 +0200
++++ pcre/pcre.h        2006-07-05 13:28:01.000000000 +0200
+@@ -60,6 +60,8 @@
+ /* Win32 uses DLL by default; it needs special stuff for exported functions
+ when building PCRE. */
++/* But don't do that when building as part of GLib */
++#if 0
+ #ifdef _WIN32
+ #  ifdef PCRE_DEFINITION
+ #    ifdef DLL_EXPORT
+@@ -71,6 +71,7 @@
+ #    endif
+ #  endif
+ #endif
++#endif
+ /* Otherwise, we use the standard "extern". */
index a566e2db7f15445741c0a7625615aab32c9c36ec..3c7d13d967ba7a4888f5c49aa7b3a5c69ae48dd4 100644 (file)
@@ -128,6 +128,9 @@ cp $PCRE/COPYING .
 # Use glib for memory allocation.
 patch > /dev/null < $IN/memory.patch
 
+# No dllimport/dllexport of pcre symbols
+patch > /dev/null <$IN/notdll.patch
+
 # Copy the modified version of pcre_valid_utf8.c.
 cp $IN/pcre_valid_utf8.c .