| Index: third_party/gflags/gen/posix/include/private/config.h
|
| diff --git a/third_party/gflags/gen/posix/include/private/config.h b/third_party/gflags/gen/posix/include/private/config.h
|
| index 98d8e1abd15d392b80e0f48d5ec488a316ceaab9..592d61c4c067edde1ed7726c36a666aa9b0214da 100644
|
| --- a/third_party/gflags/gen/posix/include/private/config.h
|
| +++ b/third_party/gflags/gen/posix/include/private/config.h
|
| @@ -1,110 +1,112 @@
|
| -/* src/config.h. Generated from config.h.in by configure. */
|
| -/* src/config.h.in. Generated from configure.ac by autoheader. */
|
| +/* Generated from config.h.in during build configuration using CMake. */
|
|
|
| -/* Always the empty-string on non-windows systems. On windows, should be
|
| - "__declspec(dllexport)". This way, when we compile the dll, we export our
|
| - functions/classes. It's safe to define this here because config.h is only
|
| - used internally, to compile the DLL, and every DLL source file #includes
|
| - "config.h" before anything else. */
|
| -#define GFLAGS_DLL_DECL /**/
|
| +// Note: This header file is only used internally. It is not part of public interface!
|
|
|
| -/* Namespace for Google classes */
|
| -#define GOOGLE_NAMESPACE ::google
|
| +// ---------------------------------------------------------------------------
|
| +// System checks
|
|
|
| -/* Define to 1 if you have the <dlfcn.h> header file. */
|
| -#define HAVE_DLFCN_H 1
|
| +// Define if you build this library for a MS Windows OS.
|
| +/* #undef OS_WINDOWS */
|
|
|
| -/* Define to 1 if you have the <fnmatch.h> header file. */
|
| -#define HAVE_FNMATCH_H 1
|
| +// Define if you have the <stdint.h> header file.
|
| +#define HAVE_STDINT_H
|
|
|
| -/* Define to 1 if you have the <inttypes.h> header file. */
|
| -#define HAVE_INTTYPES_H 1
|
| +// Define if you have the <sys/types.h> header file.
|
| +#define HAVE_SYS_TYPES_H
|
|
|
| -/* Define to 1 if you have the <memory.h> header file. */
|
| -#define HAVE_MEMORY_H 1
|
| +// Define if you have the <inttypes.h> header file.
|
| +#define HAVE_INTTYPES_H
|
|
|
| -/* define if the compiler implements namespaces */
|
| -#define HAVE_NAMESPACES 1
|
| +// Define if you have the <sys/stat.h> header file.
|
| +#define HAVE_SYS_STAT_H
|
|
|
| -/* Define if you have POSIX threads libraries and header files. */
|
| -#define HAVE_PTHREAD 1
|
| +// Define if you have the <unistd.h> header file.
|
| +#define HAVE_UNISTD_H
|
|
|
| -/* Define to 1 if you have the `putenv' function. */
|
| -#define HAVE_PUTENV 1
|
| +// Define if you have the <fnmatch.h> header file.
|
| +#define HAVE_FNMATCH_H
|
|
|
| -/* Define to 1 if you have the `setenv' function. */
|
| -#define HAVE_SETENV 1
|
| +// Define if you have the <shlwapi.h> header file (Windows 2000/XP).
|
| +/* #undef HAVE_SHLWAPI_H */
|
|
|
| -/* Define to 1 if you have the <stdint.h> header file. */
|
| -#define HAVE_STDINT_H 1
|
| +// Define if you have the strtoll function.
|
| +#define HAVE_STRTOLL
|
|
|
| -/* Define to 1 if you have the <stdlib.h> header file. */
|
| -#define HAVE_STDLIB_H 1
|
| +// Define if you have the strtoq function.
|
| +/* #undef HAVE_STRTOQ */
|
|
|
| -/* Define to 1 if you have the <strings.h> header file. */
|
| -#define HAVE_STRINGS_H 1
|
| +// Define if you have the <pthread.h> header file.
|
| +#define HAVE_PTHREAD
|
|
|
| -/* Define to 1 if you have the <string.h> header file. */
|
| -#define HAVE_STRING_H 1
|
| +// Define if your pthread library defines the type pthread_rwlock_t
|
| +#define HAVE_RWLOCK
|
|
|
| -/* Define to 1 if you have the `strtoll' function. */
|
| -#define HAVE_STRTOLL 1
|
| +// gcc requires this to get PRId64, etc.
|
| +#if defined(HAVE_INTTYPES_H) && !defined(__STDC_FORMAT_MACROS)
|
| +# define __STDC_FORMAT_MACROS 1
|
| +#endif
|
|
|
| -/* Define to 1 if you have the `strtoq' function. */
|
| -#define HAVE_STRTOQ 1
|
| +// ---------------------------------------------------------------------------
|
| +// Package information
|
|
|
| -/* Define to 1 if you have the <sys/stat.h> header file. */
|
| -#define HAVE_SYS_STAT_H 1
|
| +// Name of package.
|
| +#define PACKAGE gflags
|
|
|
| -/* Define to 1 if you have the <sys/types.h> header file. */
|
| -#define HAVE_SYS_TYPES_H 1
|
| +// Define to the full name of this package.
|
| +#define PACKAGE_NAME gflags
|
|
|
| -/* Define to 1 if you have the <unistd.h> header file. */
|
| -#define HAVE_UNISTD_H 1
|
| +// Define to the full name and version of this package.
|
| +#define PACKAGE_STRING gflags 2.2.0
|
|
|
| -/* define if your compiler has __attribute__ */
|
| -#define HAVE___ATTRIBUTE__ 1
|
| +// Define to the one symbol short name of this package.
|
| +#define PACKAGE_TARNAME gflags-2.2.0
|
|
|
| -/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
| - */
|
| -#define LT_OBJDIR ".libs/"
|
| +// Define to the version of this package.
|
| +#define PACKAGE_VERSION 2.2.0
|
|
|
| -/* Name of package */
|
| -#define PACKAGE "gflags"
|
| +// Version number of package.
|
| +#define VERSION PACKAGE_VERSION
|
|
|
| -/* Define to the address where bug reports for this package should be sent. */
|
| -#define PACKAGE_BUGREPORT "opensource@google.com"
|
| +// Define to the address where bug reports for this package should be sent.
|
| +#define PACKAGE_BUGREPORT https://github.com/schuhschuh/gflags/issues
|
|
|
| -/* Define to the full name of this package. */
|
| -#define PACKAGE_NAME "gflags"
|
| +// ---------------------------------------------------------------------------
|
| +// Path separator
|
| +#ifndef PATH_SEPARATOR
|
| +# ifdef OS_WINDOWS
|
| +# define PATH_SEPARATOR '\\'
|
| +# else
|
| +# define PATH_SEPARATOR '/'
|
| +# endif
|
| +#endif
|
|
|
| -/* Define to the full name and version of this package. */
|
| -#define PACKAGE_STRING "gflags 1.5"
|
| +// ---------------------------------------------------------------------------
|
| +// Windows
|
|
|
| -/* Define to the one symbol short name of this package. */
|
| -#define PACKAGE_TARNAME "gflags"
|
| +// Whether gflags library is a DLL.
|
| +#ifndef GFLAGS_IS_A_DLL
|
| +# define GFLAGS_IS_A_DLL 0
|
| +#endif
|
|
|
| -/* Define to the home page for this package. */
|
| -#define PACKAGE_URL ""
|
| -
|
| -/* Define to the version of this package. */
|
| -#define PACKAGE_VERSION "1.5"
|
| -
|
| -/* Define to necessary symbol if this constant uses a non-standard name on
|
| - your system. */
|
| -/* #undef PTHREAD_CREATE_JOINABLE */
|
| -
|
| -/* Define to 1 if you have the ANSI C header files. */
|
| -#define STDC_HEADERS 1
|
| -
|
| -/* the namespace where STL code like vector<> is defined */
|
| -#define STL_NAMESPACE std
|
| -
|
| -/* Version number of package */
|
| -#define VERSION "1.5"
|
| -
|
| -/* Stops putting the code inside the Google namespace */
|
| -#define _END_GOOGLE_NAMESPACE_ }
|
| -
|
| -/* Puts following code inside the Google namespace */
|
| -#define _START_GOOGLE_NAMESPACE_ namespace google {
|
| +// Always export symbols when compiling a shared library as this file is only
|
| +// included by internal modules when building the gflags library itself.
|
| +// The gflags_declare.h header file will set it to import these symbols otherwise.
|
| +#ifndef GFLAGS_DLL_DECL
|
| +# if GFLAGS_IS_A_DLL && defined(_MSC_VER)
|
| +# define GFLAGS_DLL_DECL __declspec(dllexport)
|
| +# else
|
| +# define GFLAGS_DLL_DECL
|
| +# endif
|
| +#endif
|
| +// Flags defined by the gflags library itself must be exported
|
| +#ifndef GFLAGS_DLL_DEFINE_FLAG
|
| +# define GFLAGS_DLL_DEFINE_FLAG GFLAGS_DLL_DECL
|
| +#endif
|
| +
|
| +#ifdef OS_WINDOWS
|
| +// The unittests import the symbols of the shared gflags library
|
| +# if GFLAGS_IS_A_DLL && defined(_MSC_VER)
|
| +# define GFLAGS_DLL_DECL_FOR_UNITTESTS __declspec(dllimport)
|
| +# endif
|
| +# include "windows_port.h"
|
| +#endif
|
|
|