diff options
author | Pierre Ossman <ossman@cendio.se> | 2021-12-30 10:20:13 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2021-12-30 10:23:49 +0100 |
commit | b6d6db9b7c49898a663e9a9bc309ba10275a65f4 (patch) | |
tree | 3a0dabeb9246269e4d87e0daa47e6729d6b5fc81 /common/os | |
parent | 425d8302b44137234e83d62edb70754d114b5cba (diff) | |
download | tigervnc-b6d6db9b7c49898a663e9a9bc309ba10275a65f4.tar.gz tigervnc-b6d6db9b7c49898a663e9a9bc309ba10275a65f4.zip |
Be consistent in including config.h
The generally recommended way is to include it from source files, not
headers. We had a mix of both. Let's try to be consistent and follow the
recommended way.
Diffstat (limited to 'common/os')
-rw-r--r-- | common/os/Mutex.cxx | 4 | ||||
-rw-r--r-- | common/os/Thread.cxx | 4 | ||||
-rw-r--r-- | common/os/os.h | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/common/os/Mutex.cxx b/common/os/Mutex.cxx index 13013cfb..e6532a7d 100644 --- a/common/os/Mutex.cxx +++ b/common/os/Mutex.cxx @@ -16,6 +16,10 @@ * USA. */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #ifdef WIN32 #include <windows.h> #else diff --git a/common/os/Thread.cxx b/common/os/Thread.cxx index 2b08dbf9..92cc68d5 100644 --- a/common/os/Thread.cxx +++ b/common/os/Thread.cxx @@ -16,6 +16,10 @@ * USA. */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #ifdef WIN32 #include <windows.h> #else diff --git a/common/os/os.h b/common/os/os.h index 6a8272f1..9b1de597 100644 --- a/common/os/os.h +++ b/common/os/os.h @@ -19,10 +19,6 @@ #ifndef OS_OS_H #define OS_OS_H -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <os/w32tiger.h> /* |