fix: ensure export macro to be defined (#1031)

This commit is contained in:
Sergiu Deitsch 2024-01-04 22:06:27 +01:00 committed by GitHub
parent c8950c6b17
commit f3bee1b15b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 3 deletions

View File

@ -41,6 +41,10 @@
# include "glog/export.h"
#endif
#if !defined(GLOG_EXPORT)
# error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
#endif
#include "glog/platform.h"
#include "glog/types.h"

View File

@ -34,6 +34,10 @@
# include "glog/export.h"
#endif
#if !defined(GLOG_EXPORT)
# error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
#endif
namespace google {
// The recommended semantics of the log levels are as follows:

View File

@ -56,6 +56,10 @@
# include "glog/export.h"
#endif
#if !defined(GLOG_EXPORT)
# error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
#endif
#include "glog/flags.h"
#include "glog/platform.h"
#include "glog/types.h"

View File

@ -36,13 +36,17 @@
#ifndef GLOG_RAW_LOGGING_H
#define GLOG_RAW_LOGGING_H
#include "glog/log_severity.h"
#include "glog/vlog_is_on.h"
#if defined(GLOG_USE_GLOG_EXPORT)
# include "glog/export.h"
#endif
#if !defined(GLOG_EXPORT)
# error <glog/raw_logging.h> was not included correctly. See the documention for how to consume the library.
#endif
#include "glog/log_severity.h"
#include "glog/vlog_is_on.h"
namespace google {
// This is similar to LOG(severity) << format... and VLOG(level) << format..,

View File

@ -67,6 +67,10 @@
# include "glog/export.h"
#endif
#if !defined(GLOG_EXPORT)
# error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
#endif
#include "glog/flags.h"
#include "glog/types.h"