Skip to content

Commit da68d85

Browse files
committed
Moved compat headers into a details subfolder
1 parent af09e1e commit da68d85

File tree

17 files changed

+28
-61
lines changed

17 files changed

+28
-61
lines changed

Release/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ elseif(UNIX) # This includes OSX
7373
option(BUILD_SAMPLES "Build samples." ON)
7474
option(CASA_INSTALL_HEADERS "Install header files." ON)
7575
if(CASA_INSTALL_HEADERS)
76-
file(GLOB_RECURSE CASA_HEADERS_CPPREST include/cpprest/*.hpp include/cpprest/*.h)
76+
file(GLOB CASA_HEADERS_CPPREST include/cpprest/*.hpp include/cpprest/*.h)
7777
install(FILES ${CASA_HEADERS_CPPREST} DESTINATION include/cpprest)
78-
file(GLOB_RECURSE CASA_HEADERS_PPLX include/pplx/*.hpp include/pplx/*.h)
78+
file(GLOB CASA_HEADERS_PPLX include/pplx/*.hpp include/pplx/*.h)
7979
install(FILES ${CASA_HEADERS_PPLX} DESTINATION include/pplx)
80-
file(GLOB_RECURSE CASA_HEADERS_COMPAT include/compat/*.hpp include/compat/*.h)
81-
install(FILES ${CASA_HEADERS_COMPAT} DESTINATION include/compat)
80+
file(GLOB CASA_HEADERS_DETAILS include/cpprest/details/*.hpp include/cpprest/details/*.h)
81+
install(FILES ${CASA_HEADERS_DETAILS} DESTINATION include/cpprest/details)
8282
endif()
8383
elseif(WIN32)
8484
option(BUILD_SHARED_LIBS "Build shared Libraries." ON)

Release/include/compat/pplxtasks.h

Lines changed: 0 additions & 31 deletions
This file was deleted.

Release/include/cpprest/basic_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#include <cstdint>
4141
#endif
4242

43-
#include "compat/SafeInt3.hpp"
43+
#include "cpprest/details/SafeInt3.hpp"
4444
typedef SafeInt<size_t> SafeSize;
4545

4646
namespace utility
@@ -124,4 +124,4 @@ typedef std::basic_ostringstream<utf16char> utf16ostringstream;
124124
typedef std::basic_ostream<utf16char> utf16ostream;
125125
typedef std::basic_istream<utf16char> utf16istream;
126126
typedef std::basic_istringstream<utf16char> utf16istringstream;
127-
#endif
127+
#endif

Release/include/compat/linux_compat.h renamed to Release/include/cpprest/details/linux_compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <iostream>
2727
#define __cdecl __attribute__ ((cdecl))
2828

29-
#include "compat/nosal.h"
29+
#include "cpprest/details/nosal.h"
3030

3131
// MSVC doesn't support this yet
3232
#define _noexcept noexcept

Release/include/compat/windows_compat.h renamed to Release/include/cpprest/details/windows_compat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// Support VS2012 SAL syntax only
3131
#include <sal.h>
3232
#else
33-
#include "compat/nosal.h"
33+
#include "cpprest/details/nosal.h"
3434
#endif
3535

3636
#define _noexcept
@@ -41,4 +41,4 @@
4141
#define CASABLANCA_DEPRECATED(x)
4242
#else
4343
#define CASABLANCA_DEPRECATED(x) __declspec(deprecated(x))
44-
#endif
44+
#endif

Release/include/cpprest/xxpublic.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@
5353

5454
// for guids, used in comm.h
5555
#ifdef MS_TARGET_APPLE
56-
#include "compat/apple_compat.h"
56+
#include "cpprest/details/apple_compat.h"
5757
#else
5858
#ifdef _MS_WINDOWS
5959
#include <Guiddef.h>
60-
#include "compat/windows_compat.h"
60+
#include "cpprest/details/windows_compat.h"
6161
#else
6262
#include "boost/uuid/uuid.hpp"
6363
#endif
@@ -70,4 +70,4 @@
7070
#endif
7171

7272
// Define the _NOT_PHONE8_ as non-windows or windows desktop without arm configuration or windows store app or windows phone8.1
73-
#define _NOT_PHONE8_ !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP && !defined(_M_ARM)) || WINAPI_FAMILY == WINAPI_FAMILY_APP || (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP && _WIN32_WINNT == _WIN32_WINNT_WINBLUE)
73+
#define _NOT_PHONE8_ !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP && !defined(_M_ARM)) || WINAPI_FAMILY == WINAPI_FAMILY_APP || (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP && _WIN32_WINNT == _WIN32_WINNT_WINBLUE)

Release/include/pplx/pplx.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@
5252

5353
// Use PPLx
5454
#ifdef _MS_WINDOWS
55-
#include "compat/windows_compat.h"
55+
#include "cpprest/details/windows_compat.h"
5656
#include "pplx/pplxwin.h"
5757
#elif defined(__APPLE__)
5858
#undef _PPLXIMP
5959
#define _PPLXIMP
60-
#include "compat/apple_compat.h"
60+
#include "cpprest/details/apple_compat.h"
6161
#include "pplx/pplxlinux.h"
6262
#else
63-
#include "compat/linux_compat.h"
63+
#include "cpprest/details/linux_compat.h"
6464
#include "pplx/pplxlinux.h"
6565
#endif // _MS_WINDOWS
6666

0 commit comments

Comments
 (0)