24 lines
550 B
C
24 lines
550 B
C
|
/*
|
||
|
* This software is licensed under the terms of the MIT-License
|
||
|
* See COPYING for further information.
|
||
|
* ---
|
||
|
* Copyright (c) 2011-2017, Lukas Weber <laochailan@web.de>.
|
||
|
* Copyright (c) 2012-2017, Andrei Alexeyev <akari@alienslab.net>.
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#ifndef __GNUC__ // clang defines this too
|
||
|
#define __attribute__(...)
|
||
|
#define __extension__
|
||
|
#define PRAGMA(p)
|
||
|
#else
|
||
|
#define PRAGMA(p) _Pragma(#p)
|
||
|
#endif
|
||
|
|
||
|
#ifdef __MINGW_PRINTF_FORMAT
|
||
|
#define FORMAT_ATTR __MINGW_PRINTF_FORMAT
|
||
|
#else
|
||
|
#define FORMAT_ATTR printf
|
||
|
#endif
|