summaryrefslogtreecommitdiffstats
path: root/argp-standalone/argp-fmtstream.c
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@f22node1.kkeithle.usersys.redhat.com>2015-03-13 14:22:14 -0400
committerKaleb S. KEITHLEY <kkeithle@f22node1.kkeithle.usersys.redhat.com>2015-03-13 14:32:49 -0400
commita0aa6fb91ac0cdd52769fa8c3cdbf63e48ff63db (patch)
tree3e97e08c087d8ada23ddb951e2a2802cf6cdb2ce /argp-standalone/argp-fmtstream.c
parentb037cfe399b91182d55708526645c72f324f98af (diff)
build: argp-standalone, conditional build and build with gcc-5
This patch is a backport of two patches on the master branch: 1) BZ 1086773, http://review.gluster.org/7440 commit 09d2dcac3a238cfe6bde1a7aed06facfa16caf20 Change-Id: Id0fcb717b5821d8a4c176e6274339f46b3a4a249 2) BZ 764655, http://review.gluster.org/6034 commit b2dfa011a3fdcb7d22764d143517d0fbd1c2a201 Change-Id: If5dfdc9c7427bd3d39d8da8f79e33ae2da6a3137 In summary: conditionally build argp-standalone, and address compile issues when compiling with gcc-5 Change-Id: Id0f36f0ca4a3775556c9ca524035cd27b4ded55d BUG: 1201898 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@f22node1.kkeithle.usersys.redhat.com>
Diffstat (limited to 'argp-standalone/argp-fmtstream.c')
-rw-r--r--argp-standalone/argp-fmtstream.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/argp-standalone/argp-fmtstream.c b/argp-standalone/argp-fmtstream.c
index 7f792854fc3..681dc2f3968 100644
--- a/argp-standalone/argp-fmtstream.c
+++ b/argp-standalone/argp-fmtstream.c
@@ -389,6 +389,7 @@ __argp_fmtstream_printf (struct argp_fmtstream *fs, const char *fmt, ...)
weak_alias (__argp_fmtstream_printf, argp_fmtstream_printf)
#endif
+#if __STDC_VERSION__ - 199900L < 1
/* Duplicate the inline definitions in argp-fmtstream.h, for compilers
* that don't do inlining. */
size_t
@@ -472,4 +473,8 @@ __argp_fmtstream_point (argp_fmtstream_t __fs)
return __fs->point_col >= 0 ? __fs->point_col : 0;
}
+#endif /* __STDC_VERSION__ - 199900L < 1 */
+
#endif /* !ARGP_FMTSTREAM_USE_LINEWRAP */
+
+