libwinpr-interlocked: fix iOS build
This commit is contained in:
parent
b1bba57009
commit
0dc52e219c
1
client/iOS/.gitignore
vendored
1
client/iOS/.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
# XCode files
|
# XCode files
|
||||||
|
DerivedData
|
||||||
project.xcworkspace/
|
project.xcworkspace/
|
||||||
xcuserdata/
|
xcuserdata/
|
||||||
bin/
|
bin/
|
||||||
|
@ -23,9 +23,15 @@
|
|||||||
#include <winpr/spec.h>
|
#include <winpr/spec.h>
|
||||||
#include <winpr/winpr.h>
|
#include <winpr/winpr.h>
|
||||||
#include <winpr/wtypes.h>
|
#include <winpr/wtypes.h>
|
||||||
|
#include <winpr/platform.h>
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
|
||||||
|
/* workaround for SLIST_ENTRY conflict */
|
||||||
|
|
||||||
|
#include <sys/queue.h>
|
||||||
|
#undef SLIST_ENTRY
|
||||||
|
|
||||||
#ifndef CONTAINING_RECORD
|
#ifndef CONTAINING_RECORD
|
||||||
#define CONTAINING_RECORD(address, type, field) \
|
#define CONTAINING_RECORD(address, type, field) \
|
||||||
((type *)(((ULONG_PTR) address) - (ULONG_PTR)(&(((type *) 0)->field))))
|
((type *)(((ULONG_PTR) address) - (ULONG_PTR)(&(((type *) 0)->field))))
|
||||||
|
Loading…
Reference in New Issue
Block a user