Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/1053bcd3c1bf402654645f34252db51a781b5af2
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/1053bcd3c1bf402654645f34252db51a781b5af2
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/1053bcd3c1bf402654645f34252db51a781b5af2

The branch, master has been updated
       via  1053bcd3c1bf402654645f34252db51a781b5af2 (commit)
      from  34508fc3cdd73ddb7a9532e434af4a561404507f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=1053bcd3c1bf402654645f34252db51a781b5af2
commit 1053bcd3c1bf402654645f34252db51a781b5af2
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>

    Makefile: Add STMTEXPR detection for wapcaplet
    
    Signed-off-by: Daniel Silverstone <[email protected]>

diff --git a/Makefile b/Makefile
index f8b5e9c..ae1325f 100644
--- a/Makefile
+++ b/Makefile
@@ -600,6 +600,13 @@ CXXFLAGS += 
-DNETSURF_BUILTIN_LOG_FILTER=\"$(NETSURF_BUILTIN_LOG_FILTER)\"
 CFLAGS += 
-DNETSURF_BUILTIN_VERBOSE_FILTER=\"$(NETSURF_BUILTIN_VERBOSE_FILTER)\"
 CXXFLAGS += 
-DNETSURF_BUILTIN_VERBOSE_FILTER=\"$(NETSURF_BUILTIN_VERBOSE_FILTER)\"
 
+# Determine if the C compiler supports statement expressions
+# This is needed to permit certain optimisations in our library headers
+ifneq ($(shell $(CC) -dM -E - < /dev/null | grep __GNUC__),)
+CFLAGS += -DSTMTEXPR=1
+CXXFLAGS += -DSTMTEXPR=1
+endif
+
 # ----------------------------------------------------------------------------
 # General make rules
 # ----------------------------------------------------------------------------


-----------------------------------------------------------------------

Summary of changes:
 Makefile |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Makefile b/Makefile
index f8b5e9c..ae1325f 100644
--- a/Makefile
+++ b/Makefile
@@ -600,6 +600,13 @@ CXXFLAGS += 
-DNETSURF_BUILTIN_LOG_FILTER=\"$(NETSURF_BUILTIN_LOG_FILTER)\"
 CFLAGS += 
-DNETSURF_BUILTIN_VERBOSE_FILTER=\"$(NETSURF_BUILTIN_VERBOSE_FILTER)\"
 CXXFLAGS += 
-DNETSURF_BUILTIN_VERBOSE_FILTER=\"$(NETSURF_BUILTIN_VERBOSE_FILTER)\"
 
+# Determine if the C compiler supports statement expressions
+# This is needed to permit certain optimisations in our library headers
+ifneq ($(shell $(CC) -dM -E - < /dev/null | grep __GNUC__),)
+CFLAGS += -DSTMTEXPR=1
+CXXFLAGS += -DSTMTEXPR=1
+endif
+
 # ----------------------------------------------------------------------------
 # General make rules
 # ----------------------------------------------------------------------------


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to