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
|
||||
DerivedData
|
||||
project.xcworkspace/
|
||||
xcuserdata/
|
||||
bin/
|
||||
|
@ -23,9 +23,15 @@
|
||||
#include <winpr/spec.h>
|
||||
#include <winpr/winpr.h>
|
||||
#include <winpr/wtypes.h>
|
||||
#include <winpr/platform.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
/* workaround for SLIST_ENTRY conflict */
|
||||
|
||||
#include <sys/queue.h>
|
||||
#undef SLIST_ENTRY
|
||||
|
||||
#ifndef CONTAINING_RECORD
|
||||
#define CONTAINING_RECORD(address, type, field) \
|
||||
((type *)(((ULONG_PTR) address) - (ULONG_PTR)(&(((type *) 0)->field))))
|
||||
|
Loading…
Reference in New Issue
Block a user