Browse Source

endian.h: Use the compatibility shim conventions.

master
Reece H. Dunn 8 years ago
parent
commit
55da41e085
1 changed files with 9 additions and 3 deletions
  1. 9
    3
      src/include/compat/endian.h

+ 9
- 3
src/include/compat/endian.h View File

/**
/* Compatibility shim for <endian.h>
*
* "License": Public Domain * "License": Public Domain
* "Original": https://gist.github.com/panzi/6856583
* *
* I, Mathias Panzenböck, place this file hereby into the public domain. Use it * I, Mathias Panzenböck, place this file hereby into the public domain. Use it
* at your own risk for whatever you like. In case there are jurisdictions that * at your own risk for whatever you like. In case there are jurisdictions that
* to be "dual licensed" under the BSD, MIT and Apache licenses, if you want * to be "dual licensed" 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 * to. This 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.
*
* Modifications also in the Public Domain:
*
* Copyright (C) 2016 Reece H. Dunn
*/ */


#ifndef PORTABLE_ENDIAN_H__
#define PORTABLE_ENDIAN_H__
#ifndef ENDIAN_H_COMPAT_SHIM
#define ENDIAN_H_COMPAT_SHIM


#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__) #if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__)
# define __WINDOWS__ # define __WINDOWS__

Loading…
Cancel
Save