Skip to content

Commit

Permalink
Don't bother with HAVE_DEFINE_PRAGMA, it's unnecessary and doesn't al…
Browse files Browse the repository at this point in the history
…ways work
  • Loading branch information
qris committed Dec 27, 2016
1 parent 32bdcd4 commit 83b31da
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/common/BoxPlatform.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,7 @@
#define PLATFORM_CANNOT_FIND_PEER_UID_OF_UNIX_SOCKET
#endif

#ifdef HAVE_DEFINE_PRAGMA
// set packing to one bytes (can't use push/pop on gcc)
#define BEGIN_STRUCTURE_PACKING_FOR_WIRE #pragma pack(1)

// Use default packing
#define END_STRUCTURE_PACKING_FOR_WIRE #pragma pack()
#else
#define STRUCTURE_PACKING_FOR_WIRE_USE_HEADERS
#endif
#define STRUCTURE_PACKING_FOR_WIRE_USE_HEADERS

// Handle differing xattr APIs
#if !defined(HAVE_LLISTXATTR) && defined(HAVE_LISTXATTR) && HAVE_DECL_XATTR_NOFOLLOW
Expand Down

0 comments on commit 83b31da

Please sign in to comment.