Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap
Commits
e4000ad6
Commit
e4000ad6
authored
6 years ago
by
cheloveck3-0
Committed by
Kurotych Anatolii
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
added header to macos for endian.h (#37)
Added header to macOS for endian.h
parent
7716e11a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
crypto/sig_picnic/macos_specific_endian.h
+32
-0
32 additions, 0 deletions
crypto/sig_picnic/macos_specific_endian.h
crypto/sig_picnic/picnic_impl.c
+2
-0
2 additions, 0 deletions
crypto/sig_picnic/picnic_impl.c
crypto/sig_picnic/sig_picnic.pri
+2
-1
2 additions, 1 deletion
crypto/sig_picnic/sig_picnic.pri
with
36 additions
and
1 deletion
crypto/sig_picnic/macos_specific_endian.h
0 → 100644
+
32
−
0
View file @
e4000ad6
#ifndef MACOS_SPECIFIC_ENDIAN_H
#define MACOS_SPECIFIC_ENDIAN_H
/** compatibility header for endian.h
* This is a simple compatibility shim to convert
* BSD/Linux endian macros to the Mac OS X equivalents.
* It is public domain.
* */
#ifndef __APPLE__
#warning "This header file (endian.h) is MacOS X specific.\n"
#endif
/* __APPLE__ */
#include
<machine/endian.h>
#include
<libkern/OSByteOrder.h>
#define htobe16(x) OSSwapHostToBigInt16(x)
#define htole16(x) OSSwapHostToLittleInt16(x)
#define be16toh(x) OSSwapBigToHostInt16(x)
#define le16toh(x) OSSwapLittleToHostInt16(x)
#define htobe32(x) OSSwapHostToBigInt32(x)
#define htole32(x) OSSwapHostToLittleInt32(x)
#define be32toh(x) OSSwapBigToHostInt32(x)
#define le32toh(x) OSSwapLittleToHostInt32(x)
#define htobe64(x) OSSwapHostToBigInt64(x)
#define htole64(x) OSSwapHostToLittleInt64(x)
#define be64toh(x) OSSwapBigToHostInt64(x)
#define le64toh(x) OSSwapLittleToHostInt64(x)
#endif // MACOS_SPECIFIC_ENDIAN_H
This diff is collapsed.
Click to expand it.
crypto/sig_picnic/picnic_impl.c
+
2
−
0
View file @
e4000ad6
...
...
@@ -20,6 +20,8 @@
#if defined (__WIN32)
#include
<Windows.h>
#include
<bcrypt.h>
#elif defined (__APPLE__)
#include
"macos_specific_endian.h"
#else
#include
<endian.h>
#endif
...
...
This diff is collapsed.
Click to expand it.
crypto/sig_picnic/sig_picnic.pri
+
2
−
1
View file @
e4000ad6
...
...
@@ -3,8 +3,9 @@ HEADERS += $$PWD/hash.h \
$$PWD/picnic.h \
$$PWD/picnic_impl.h \
$$PWD/picnic_types.h \
$$PWD/platform.h
\
$$PWD/platform.h
macos { HEADERS += $$PWD/macos_specific_endian.h }
SOURCES += $$PWD/hash.c \
$$PWD/lowmc_constants.c \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment