[PATCH] Correct reference to GCC compiler macro

Joel Cunningham joel.cunningham at me.com
Mon Mar 14 14:28:01 UTC 2016


Anyone have comments on this small change?  Any interest in accepting it?



Thanks,



Joel


On Mar 01, 2016, at 01:40 PM, Joel Cunningham <joel.cunningham at me.com> wrote:


# HG changeset patch
# User Joel Cunningham <joel.cunningham at me.com>
# Date 1456860378 21600
# Tue Mar 01 13:26:18 2016 -0600
# Node ID cce5f2f6ed76ffa0f6890e90e7b1b68718ffa8a9
# Parent 3b9fe734a76ca0863ec87596369690831e9f4086
Correct reference to GCC compiler macro

This commit corrects a small typo where __GNU__ was used in place of
__GNUC__

This was identified on a GCC system that built with undefined macros
treated as errors when used with #if

diff -r 3b9fe734a76c -r cce5f2f6ed76 src/core/ngx_config.h
--- a/src/core/ngx_config.h Tue Mar 01 15:18:07 2016 +0300
+++ b/src/core/ngx_config.h Tue Mar 01 13:26:18 2016 -0600
@@ -125,7 +125,7 @@
#endif


-#if ((__GNU__ == 2) && (__GNUC_MINOR__ < 8))
+#if ((__GNUC__ == 2) && (__GNUC_MINOR__ < 8))
#define NGX_MAX_UINT32_VALUE (uint32_t) 0xffffffffLL
#else
#define NGX_MAX_UINT32_VALUE (uint32_t) 0xffffffff

_______________________________________________
nginx-devel mailing list
nginx-devel at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20160314/c5b36e2f/attachment.html>


More information about the nginx-devel mailing list