Commit 6746dffa638147c78c07a7818183352ffbc78237

Authored by Perry Werneck
1 parent 4603b16a
Exists in master and in 1 other branch develop

Use of config.h is now optional.

client/src/core/linux/dynamic/init.cc
... ... @@ -36,7 +36,6 @@
36 36 *
37 37 */
38 38  
39   - #include <config.h>
40 39 #include <ipc-client-internals.h>
41 40  
42 41 extern "C" {
... ...
client/src/core/windows/dynamic/init.cc
... ... @@ -36,7 +36,6 @@
36 36 *
37 37 */
38 38  
39   - #include <config.h>
40 39 #include <ipc-client-internals.h>
41 40 #include <delayimp.h>
42 41 #include <fcntl.h>
... ...
client/src/core/windows/tools.cc
... ... @@ -36,7 +36,6 @@
36 36 *
37 37 */
38 38  
39   - #include <config.h>
40 39 #include <ipc-client-internals.h>
41 40 #include <lmcons.h>
42 41 #include <fcntl.h>
... ...
client/src/host/private.h
... ... @@ -40,6 +40,10 @@
40 40  
41 41 #define PRIVATE_H_INCLUDED
42 42  
  43 + #ifdef HAVE_CONFIG_H
  44 + #include <config.h>
  45 + #endif // HAVE_CONFIG_H
  46 +
43 47 #include <ipc-client-internals.h>
44 48 #include <string>
45 49 #include <cstring>
... ...
client/src/include/ipc-client-internals.h
... ... @@ -40,7 +40,9 @@
40 40  
41 41 #define IPC_CLIENT_INTERNALS_INCLUDED
42 42  
43   - #include <config.h>
  43 + #ifdef HAVE_CONFIG_H
  44 + #include <config.h>
  45 + #endif // HAVE_CONFIG_H
44 46  
45 47 #ifdef _WIN32
46 48 #include <winsock2.h>
... ...
client/src/session/local/private.h
... ... @@ -40,7 +40,10 @@
40 40  
41 41 #define PRIVATE_H_INCLUDED
42 42  
43   - #include <config.h>
  43 + #ifdef HAVE_CONFIG_H
  44 + #include <config.h>
  45 + #endif // HAVE_CONFIG_H
  46 +
44 47 #include <ipc-client-internals.h>
45 48 #include <lib3270/ipc/action.h>
46 49 #include <string>
... ...
client/src/session/remote/private.h
... ... @@ -40,7 +40,10 @@
40 40  
41 41 #define PRIVATE_H_INCLUDED
42 42  
43   - #include <config.h>
  43 + #ifdef HAVE_CONFIG_H
  44 + #include <config.h>
  45 + #endif // HAVE_CONFIG_H
  46 +
44 47 #include <ipc-client-internals.h>
45 48 #include <lib3270/ipc/action.h>
46 49 #include <string>
... ...
client/src/testprogram/testprogram.cc
... ... @@ -36,7 +36,6 @@
36 36 *
37 37 */
38 38  
39   - #include <config.h>
40 39 #include <getopt.h>
41 40 #include <cstdlib>
42 41 #include <lib3270.h>
... ...