Revision: 55699
http://sourceforge.net/p/brlcad/code/55699
Author: brlcad
Date: 2013-06-10 16:39:26 +0000 (Mon, 10 Jun 2013)
Log Message:
-----------
__STRICT_ANSI__ is not the right define to key off of as it catches c89 and c99
(for gcc and clang). if we're compililing gnu89 pedantic, we need to check for
GNU inline behavior, which is indicated for gcc 4.1+ and clang via the
__GNUC_GNU_INLINE__ define. leaving __STRICT_ANSI__ in place to not rock the
windows boat prior to release.
Modified Paths:
--------------
brlcad/trunk/include/common.h
Modified: brlcad/trunk/include/common.h
===================================================================
--- brlcad/trunk/include/common.h 2013-06-10 13:10:22 UTC (rev 55698)
+++ brlcad/trunk/include/common.h 2013-06-10 16:39:26 UTC (rev 55699)
@@ -82,8 +82,12 @@
# endif
#endif
-/* ansi c89 does not allow the 'inline' keyword */
-#ifdef __STRICT_ANSI__
+/* ansi c89 does not allow the 'inline' keyword, check if GNU inline
+ * rules are in effect.
+ *
+ * TODO: test removal of __STRICT_ANSI__ on Windows.
+ */
+#if defined(__STRICT_ANSI__) || defined(__GNUC_GNU_INLINE__)
# ifndef inline
# define inline /***/
# endif
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits