Removed some macros for FreeBSD: Apparantly they are not needed. We might need to remove them for NetBSD and DragonFly as well

This commit is contained in:
Martijn Otto 2015-07-01 09:48:56 +02:00
parent 7a11c23f03
commit db3613112e
1 changed files with 13 additions and 13 deletions

View File

@ -1,24 +1,24 @@
/** /**
* Endian.h * Endian.h
* *
* On Apple systems, there are no macro's to convert between little * On Apple systems, there are no macro's to convert between little
* and big endian byte orders. This header file adds the missing macros * and big endian byte orders. This header file adds the missing macros
* *
* @author madmongo1 <https://github.com/madmongo1> * @author madmongo1 <https://github.com/madmongo1>
* *
* And we have also copied code from the "portable_endian.h" file by * And we have also copied code from the "portable_endian.h" file by
* Mathias Panzenböck. His license: * Mathias Panzenböck. His license:
* *
* "License": Public Domain * "License": Public Domain
* I, Mathias Panzenböck, place this file hereby into the public * I, Mathias Panzenböck, place this file hereby into the public
* domain. Use it at your own risk for whatever you like. In case * domain. Use it at your own risk for whatever you like. In case
* there are jurisdictions that don't support putting things in the * there are jurisdictions that don't support putting things in the
* public domain you can also consider it to be "dual licensed" * public domain you can also consider it to be "dual licensed"
* under the BSD, MIT and Apache licenses, if you want to. This * under the BSD, MIT and Apache licenses, if you want to. This
* code is trivial anyway. Consider it an example on how to get the * code is trivial anyway. Consider it an example on how to get the
* endian conversion functions on different platforms. * endian conversion functions on different platforms.
*/ */
/** /**
* Include guard * Include guard
*/ */
@ -116,7 +116,7 @@
/** /**
* NetBSD handling * NetBSD handling
*/ */
#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) #elif defined(__NetBSD__) || defined(__DragonFly__)
#include <sys/endian.h> #include <sys/endian.h>
#define be16toh(x) betoh16(x) #define be16toh(x) betoh16(x)