Skip to content

Commit e2290fb

Browse files
committed
Merge branch 'fix-arm-2' of https://git01.codeplex.com/forks/locutusofborg/casablanca2 into arm_pull_requests
2 parents 676b6d1 + bf26fa6 commit e2290fb

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

Release/include/cpprest/details/cpprest_compat.h

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,11 @@
5555
// No SAL on non Windows platforms
5656
#include "cpprest/details/nosal.h"
5757

58-
#if defined(__APPLE__) // Settings specific to Apple
59-
#define __cdecl
58+
#if not defined __cdecl
59+
#if defined cdecl
60+
#define __cdecl __attribute__ ((cdecl))
6061
#else
61-
62-
// Settings specific to Linux and Android
63-
64-
// Ignore cdecl on ANDROID ARM and 64bit
65-
#if defined(__ANDROID__) && defined(__arm__) || defined(__LP64__)
6662
#define __cdecl
67-
#else
68-
#define __cdecl __attribute__ ((cdecl))
6963
#endif
7064

7165
#if defined(__ANDROID__)

Release/include/pplx/pplxcancellation_token.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#endif
3636

3737
#include <string>
38-
#include <pplx/pplxinterface.h>
38+
#include "pplx/pplxinterface.h"
3939

4040
#pragma pack(push,_CRT_PACKING)
4141
// All header files are required to be protected from the macro new

Release/include/pplx/pplxinterface.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,7 @@
4646
#include <atomic>
4747
#endif
4848

49-
#if (defined(ANDROID) || defined(__ANDROID__))
50-
// This prevents users from requiring -Wno-attributes when using gcc-4.8 with the android NDK.
51-
#define _pplx_cdecl
52-
#else
5349
#define _pplx_cdecl __cdecl
54-
#endif
5550

5651
namespace pplx
5752
{

0 commit comments

Comments
 (0)