summaryrefslogtreecommitdiff
path: root/src/gflags.cc
diff options
context:
space:
mode:
authorAndreas Schuh <andreas.schuh.84@gmail.com>2014-03-15 14:15:33 +0000
committerAndreas Schuh <andreas.schuh.84@gmail.com>2014-03-15 14:15:33 +0000
commit8477f3174eb9d2cf4e43af222c7bbb6dfd006827 (patch)
tree8ecb8a8cdbd749d2828c7def8583604d53ac160b /src/gflags.cc
parentf0f565fb0f28b9a658e546eecf8e4847eac6a45c (diff)
downloadgflags-8477f3174eb9d2cf4e43af222c7bbb6dfd006827.tar.gz
gflags-8477f3174eb9d2cf4e43af222c7bbb6dfd006827.tar.bz2
gflags-8477f3174eb9d2cf4e43af222c7bbb6dfd006827.zip
Fix build with Xcode 5, system checks, set LANGUAGE to CXX.
Diffstat (limited to 'src/gflags.cc')
-rw-r--r--src/gflags.cc22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/gflags.cc b/src/gflags.cc
index b273ddc..0e6ea7d 100644
--- a/src/gflags.cc
+++ b/src/gflags.cc
@@ -93,7 +93,7 @@
#include <assert.h>
#include <ctype.h>
#include <errno.h>
-#if HAVE_FNMATCH_H
+#ifdef HAVE_FNMATCH_H
# include <fnmatch.h>
#endif
#include <stdarg.h> // For va_list and related operations
@@ -111,20 +111,16 @@
// Special flags, type 1: the 'recursive' flags. They set another flag's val.
-DEFINE_string(flagfile, "",
- "load flags from file");
-DEFINE_string(fromenv, "",
- "set flags from the environment"
- " [use 'export FLAGS_flag1=value']");
-DEFINE_string(tryfromenv, "",
- "set flags from the environment if present");
+DEFINE_string(flagfile, "", "load flags from file");
+DEFINE_string(fromenv, "", "set flags from the environment"
+ " [use 'export FLAGS_flag1=value']");
+DEFINE_string(tryfromenv, "", "set flags from the environment if present");
// Special flags, type 2: the 'parsing' flags. They modify how we parse.
-DEFINE_string(undefok, "",
- "comma-separated list of flag names that it is okay to specify "
- "on the command line even if the program does not define a flag "
- "with that name. IMPORTANT: flags in this list that have "
- "arguments MUST use the flag=value format");
+DEFINE_string(undefok, "", "comma-separated list of flag names that it is okay to specify "
+ "on the command line even if the program does not define a flag "
+ "with that name. IMPORTANT: flags in this list that have "
+ "arguments MUST use the flag=value format");
namespace GFLAGS_NAMESPACE {