Refactored WinPR includes

This commit is contained in:
Armin Novak 2022-02-16 10:08:00 +01:00 committed by akallabeth
parent c99c4cecdd
commit 6ed50b4b1d
148 changed files with 160 additions and 454 deletions

View File

@ -243,13 +243,6 @@ set(OPENSSL_FEATURE_TYPE "RECOMMENDED")
message(FATAL_ERROR "OpenSSL or MBedTLS are required, none enabled/found") message(FATAL_ERROR "OpenSSL or MBedTLS are required, none enabled/found")
endif() endif()
# Include directories
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
# Configure files
add_definitions("-DHAVE_CONFIG_H")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
enable_testing() enable_testing()
if(MSVC) if(MSVC)
@ -288,7 +281,8 @@ endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include) include_directories(${CMAKE_CURRENT_BINARY_DIR}/include)
add_subdirectory(include) set(WINPR_INCLUDE_DIR "include/winpr${WINPR_VERSION_MAJOR}")
add_subdirectory(libwinpr) add_subdirectory(libwinpr)
@ -300,6 +294,8 @@ if(BUILD_TESTING)
add_subdirectory(test) add_subdirectory(test)
endif() endif()
add_subdirectory(include)
install_freerdp_man(wlog.7 7) install_freerdp_man(wlog.7 7)
# Exporting # Exporting
@ -307,8 +303,6 @@ export(PACKAGE winpr)
SetFreeRDPCMakeInstallDir(WINPR_CMAKE_INSTALL_DIR "WinPR${WINPR_VERSION_MAJOR}") SetFreeRDPCMakeInstallDir(WINPR_CMAKE_INSTALL_DIR "WinPR${WINPR_VERSION_MAJOR}")
set(WINPR_INCLUDE_DIR "include/winpr${WINPR_VERSION_MAJOR}")
configure_package_config_file(WinPRConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/WinPRConfig.cmake configure_package_config_file(WinPRConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/WinPRConfig.cmake
INSTALL_DESTINATION ${WINPR_CMAKE_INSTALL_DIR} INSTALL_DESTINATION ${WINPR_CMAKE_INSTALL_DIR}
PATH_VARS WINPR_INCLUDE_DIR) PATH_VARS WINPR_INCLUDE_DIR)
@ -323,4 +317,4 @@ install(EXPORT WinPRTargets DESTINATION ${WINPR_CMAKE_INSTALL_DIR})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/winpr.pc.in ${CMAKE_CURRENT_BINARY_DIR}/winpr${WINPR_VERSION_MAJOR}.pc @ONLY) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/winpr.pc.in ${CMAKE_CURRENT_BINARY_DIR}/winpr${WINPR_VERSION_MAJOR}.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/winpr${WINPR_VERSION_MAJOR}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/winpr${WINPR_VERSION_MAJOR}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/buildflags.h.in ${CMAKE_CURRENT_BINARY_DIR}/buildflags.h)

View File

@ -15,14 +15,17 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/winpr/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/winpr/version.h) configure_file(config/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/winpr/version.h)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/winpr/wtypes.h.in ${CMAKE_CURRENT_BINARY_DIR}/winpr/wtypes.h) configure_file(config/wtypes.h.in ${CMAKE_CURRENT_BINARY_DIR}/winpr/wtypes.h)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/winpr/build-config.h.in ${CMAKE_CURRENT_BINARY_DIR}/winpr/build-config.h) configure_file(config/build-config.h.in ${CMAKE_CURRENT_BINARY_DIR}/winpr/build-config.h)
set(WINPR_INSTALL_INCLUDE_DIR include/winpr${WINPR_VERSION_MAJOR}/winpr) configure_file(config/buildflags.h.in ${CMAKE_CURRENT_BINARY_DIR}/winpr/buildflags.h)
configure_file(config/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/winpr/config.h)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
DESTINATION ${WINPR_INCLUDE_DIR}
FILES_MATCHING PATTERN "*.h")
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/
DESTINATION ${WINPR_INCLUDE_DIR}
FILES_MATCHING PATTERN "*.h")
file(GLOB WINPR_HEADERS "winpr/*.h")
install(FILES ${WINPR_HEADERS} DESTINATION ${WINPR_INSTALL_INCLUDE_DIR} COMPONENT headers)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/winpr/version.h DESTINATION ${WINPR_INSTALL_INCLUDE_DIR} COMPONENT headers)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/winpr/wtypes.h DESTINATION ${WINPR_INSTALL_INCLUDE_DIR} COMPONENT headers)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/winpr/build-config.h DESTINATION ${WINPR_INSTALL_INCLUDE_DIR} COMPONENT headers)
install(DIRECTORY winpr/tools DESTINATION ${WINPR_INSTALL_INCLUDE_DIR} COMPONENT headers FILES_MATCHING PATTERN "*.h")

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#ifndef _WIN32 #ifndef _WIN32
#include <winpr/bcrypt.h> #include <winpr/bcrypt.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/collections.h> #include <winpr/collections.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#if defined(__clang__) #if defined(__clang__)
#pragma clang diagnostic push #pragma clang diagnostic push

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <winpr/crt.h> #include <winpr/crt.h>

View File

@ -20,9 +20,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#if defined __linux__ && !defined ANDROID #if defined __linux__ && !defined ANDROID

View File

@ -29,7 +29,7 @@
#include <winpr/comm.h> #include <winpr/comm.h>
#include "../handle/handle.h" #include "../handle/handle.h"
#include "config.h" #include <winpr/config.h>
struct winpr_comm struct winpr_comm
{ {

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#if defined __linux__ && !defined ANDROID #if defined __linux__ && !defined ANDROID

View File

@ -20,9 +20,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#if defined __linux__ && !defined ANDROID #if defined __linux__ && !defined ANDROID

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/string.h> #include <winpr/string.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <wctype.h> #include <wctype.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crypto.h> #include <winpr/crypto.h>

View File

@ -16,9 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crypto.h> #include <winpr/crypto.h>

View File

@ -16,9 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>

View File

@ -16,9 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/dsparse.h> #include <winpr/dsparse.h>
#include <winpr/assert.h> #include <winpr/assert.h>

View File

@ -19,9 +19,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/platform.h> #include <winpr/platform.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/error.h> #include <winpr/error.h>

View File

@ -19,9 +19,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif /* HAVE_CONFIG_H */
#if defined(__FreeBSD_kernel__) && defined(__GLIBC__) #if defined(__FreeBSD_kernel__) && defined(__GLIBC__)
#define _GNU_SOURCE #define _GNU_SOURCE

View File

@ -19,9 +19,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/path.h> #include <winpr/path.h>

View File

@ -19,9 +19,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/path.h> #include <winpr/path.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/handle.h> #include <winpr/handle.h>

View File

@ -18,9 +18,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/handle.h> #include <winpr/handle.h>

View File

@ -18,9 +18,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include "nonehandle.h" #include "nonehandle.h"

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/synch.h> #include <winpr/synch.h>
#include <winpr/handle.h> #include <winpr/handle.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/io.h> #include <winpr/io.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/io.h> #include <winpr/io.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/platform.h> #include <winpr/platform.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>

View File

@ -20,9 +20,7 @@
#ifndef WINPR_LIBWINPR_NCRYPT_NCRYPT_H_ #ifndef WINPR_LIBWINPR_NCRYPT_NCRYPT_H_
#define WINPR_LIBWINPR_NCRYPT_NCRYPT_H_ #define WINPR_LIBWINPR_NCRYPT_NCRYPT_H_
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/bcrypt.h> #include <winpr/bcrypt.h>
#include <winpr/crypto.h> #include <winpr/crypto.h>

View File

@ -19,9 +19,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/library.h> #include <winpr/library.h>

View File

@ -18,9 +18,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/nt.h> #include <winpr/nt.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/tchar.h> #include <winpr/tchar.h>

View File

@ -18,9 +18,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -20,9 +20,7 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include "shell_ios.h" #include "shell_ios.h"

View File

@ -19,9 +19,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/path.h> #include <winpr/path.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/pool.h> #include <winpr/pool.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/pool.h> #include <winpr/pool.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/pool.h> #include <winpr/pool.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/pool.h> #include <winpr/pool.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/pool.h> #include <winpr/pool.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/pool.h> #include <winpr/pool.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/pool.h> #include <winpr/pool.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/pool.h> #include <winpr/pool.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/registry.h> #include <winpr/registry.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/rpc.h> #include <winpr/rpc.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/shell.h> #include <winpr/shell.h>

View File

@ -19,9 +19,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/library.h> #include <winpr/library.h>

View File

@ -19,9 +19,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/wlog.h> #include <winpr/wlog.h>

View File

@ -19,9 +19,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#ifndef _WIN32 #ifndef _WIN32

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#ifdef _WIN32 #ifdef _WIN32

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/sspi.h> #include <winpr/sspi.h>

View File

@ -18,9 +18,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/assert.h> #include <winpr/assert.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/assert.h> #include <winpr/assert.h>

View File

@ -20,9 +20,7 @@
#ifndef WINPR_SSPI_NTLM_AV_PAIRS_H #ifndef WINPR_SSPI_NTLM_AV_PAIRS_H
#define WINPR_SSPI_NTLM_AV_PAIRS_H #define WINPR_SSPI_NTLM_AV_PAIRS_H
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include "ntlm.h" #include "ntlm.h"

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/assert.h> #include <winpr/assert.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include "ntlm.h" #include "ntlm.h"
#include "../sspi.h" #include "../sspi.h"

View File

@ -18,9 +18,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/sspi.h> #include <winpr/sspi.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/sspi.h> #include <winpr/sspi.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include "schannel_openssl.h" #include "schannel_openssl.h"

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#if defined(__clang__) #if defined(__clang__)
#pragma clang diagnostic push #pragma clang diagnostic push

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#ifdef _WIN32 #ifdef _WIN32
#define SEC_ENTRY __stdcall #define SEC_ENTRY __stdcall

View File

@ -19,9 +19,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/library.h> #include <winpr/library.h>

View File

@ -18,9 +18,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/windows.h> #include <winpr/windows.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/assert.h> #include <winpr/assert.h>
#include <winpr/sspicli.h> #include <winpr/sspicli.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/synch.h> #include <winpr/synch.h>

View File

@ -18,9 +18,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/synch.h> #include <winpr/synch.h>
#include <winpr/assert.h> #include <winpr/assert.h>

View File

@ -18,9 +18,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/tchar.h> #include <winpr/tchar.h>
#include <winpr/synch.h> #include <winpr/synch.h>

View File

@ -19,9 +19,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -21,9 +21,7 @@
#include "../handle/handle.h" #include "../handle/handle.h"
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#ifdef HAVE_SYS_EVENTFD_H #ifdef HAVE_SYS_EVENTFD_H
#include <sys/eventfd.h> #include <sys/eventfd.h>

View File

@ -19,9 +19,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/synch.h> #include <winpr/synch.h>
#include <winpr/interlocked.h> #include <winpr/interlocked.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/synch.h> #include <winpr/synch.h>
#include <winpr/debug.h> #include <winpr/debug.h>

View File

@ -22,9 +22,7 @@
#include <winpr/wtypes.h> #include <winpr/wtypes.h>
#include <winpr/synch.h> #include <winpr/synch.h>
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#ifndef _WIN32 #ifndef _WIN32

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/synch.h> #include <winpr/synch.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/windows.h> #include <winpr/windows.h>

View File

@ -20,9 +20,7 @@
#ifndef WINPR_SYNCH_PRIVATE_H #ifndef WINPR_SYNCH_PRIVATE_H
#define WINPR_SYNCH_PRIVATE_H #define WINPR_SYNCH_PRIVATE_H
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/platform.h> #include <winpr/platform.h>

View File

@ -18,9 +18,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/file.h> #include <winpr/file.h>

View File

@ -18,9 +18,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>

View File

@ -18,9 +18,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/sysinfo.h> #include <winpr/sysinfo.h>
#include <winpr/platform.h> #include <winpr/platform.h>

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/handle.h> #include <winpr/handle.h>

View File

@ -18,9 +18,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/handle.h> #include <winpr/handle.h>
#include "../handle/nonehandle.h" #include "../handle/nonehandle.h"

View File

@ -17,9 +17,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/handle.h> #include <winpr/handle.h>

View File

@ -20,9 +20,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifdef HAVE_CONFIG_H #include <winpr/config.h>
#include "config.h"
#endif
#include <winpr/assert.h> #include <winpr/assert.h>

Some files were not shown because too many files have changed in this diff Show More