From 55da41e085a8c59cb61aa7de51a6331684f4832b Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Wed, 7 Dec 2016 07:18:53 +0000 Subject: [PATCH] endian.h: Use the compatibility shim conventions. --- src/include/compat/endian.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/include/compat/endian.h b/src/include/compat/endian.h index 7cd25cc9..87f199cf 100644 --- a/src/include/compat/endian.h +++ b/src/include/compat/endian.h @@ -1,5 +1,7 @@ -/** +/* Compatibility shim for + * * "License": Public Domain + * "Original": https://gist.github.com/panzi/6856583 * * 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 @@ -7,10 +9,14 @@ * 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 * 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__) # define __WINDOWS__