Skip to content

Commit

Permalink
Freerdp remove #ifdef HAVE_CONFIG_H
Browse files Browse the repository at this point in the history
  • Loading branch information
akallabeth committed Mar 3, 2022
1 parent b2ad47a commit 4d03d7c
Show file tree
Hide file tree
Showing 346 changed files with 6 additions and 691 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -863,9 +863,6 @@ else()
set(FREERDP_PROXY_PLUGINDIR "${PROXY_PLUGINDIR}")
endif()

# Declare we have config.h, generated later on.
add_definitions("-DHAVE_CONFIG_H")

# RPATH configuration
set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
Expand Down
2 changes: 0 additions & 2 deletions channels/audin/client/alsa/audin_alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/audin/client/audin_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <errno.h>
#include <winpr/assert.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/audin/client/audin_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
#ifndef FREERDP_CHANNEL_AUDIN_CLIENT_MAIN_H
#define FREERDP_CHANNEL_AUDIN_CLIENT_MAIN_H

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <freerdp/dvc.h>
#include <freerdp/types.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/audin/client/ios/audin_ios.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/audin/client/mac/audin_mac.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/audin/client/opensles/audin_opensl_es.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/assert.h>
#include <stdio.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/audin/client/oss/audin_oss.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/audin/client/pulse/audin_pulse.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/audin/client/sndio/audin_sndio.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <sndio.h>

Expand Down
2 changes: 0 additions & 2 deletions channels/audin/client/winmm/audin_winmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/audin/server/audin.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/client/addin.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/crt.h>
#include <winpr/assert.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/cliprdr/client/cliprdr_format.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/crt.h>
#include <winpr/print.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/cliprdr/client/cliprdr_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/wtypes.h>
#include <winpr/assert.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/cliprdr/server/cliprdr_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/crt.h>
#include <winpr/print.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/disp/client/disp_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/disp/client/disp_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
#ifndef FREERDP_CHANNEL_DISP_CLIENT_MAIN_H
#define FREERDP_CHANNEL_DISP_CLIENT_MAIN_H

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <freerdp/dvc.h>
#include <freerdp/types.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/disp/disp_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/crt.h>
#include <winpr/stream.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/disp/server/disp_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include "disp_main.h"
#include <stdio.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/drdynvc/client/drdynvc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/crt.h>
#include <winpr/stream.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/drdynvc/server/drdynvc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/crt.h>
#include <winpr/print.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/drive/client/drive_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <errno.h>
#include <stdio.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/drive/client/drive_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <errno.h>
#include <stdio.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/echo/client/echo_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/echo/client/echo_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
#ifndef FREERDP_CHANNEL_ECHO_CLIENT_MAIN_H
#define FREERDP_CHANNEL_ECHO_CLIENT_MAIN_H

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <freerdp/dvc.h>
#include <freerdp/types.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/echo/server/echo_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/encomsp/client/encomsp_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/crt.h>
#include <winpr/assert.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/encomsp/server/encomsp_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/crt.h>
#include <winpr/print.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/geometry/client/geometry_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/geometry/client/geometry_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
#ifndef FREERDP_CHANNEL_GEOMETRY_CLIENT_MAIN_H
#define FREERDP_CHANNEL_GEOMETRY_CLIENT_MAIN_H

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <freerdp/dvc.h>
#include <freerdp/types.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/gfxredir/gfxredir_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/crt.h>
#include <winpr/stream.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/gfxredir/server/gfxredir_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include "gfxredir_main.h"
#include <stdio.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/parallel/client/parallel_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/printer/client/cups/printer_cups.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/printer/client/printer_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/printer/client/win/printer_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/crt.h>
#include <winpr/string.h>
Expand Down
2 changes: 0 additions & 2 deletions channels/rail/client/rail_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/crt.h>

Expand Down
2 changes: 0 additions & 2 deletions channels/rail/client/rail_orders.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <winpr/crt.h>

Expand Down
2 changes: 0 additions & 2 deletions channels/rdpdr/client/devman.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
* limitations under the License.
*/

#ifdef HAVE_CONFIG_H
#include <freerdp/config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
Loading

0 comments on commit 4d03d7c

Please sign in to comment.