2017-10-04 07:07:04 +02:00
|
|
|
/*
|
|
|
|
* This software is licensed under the terms of the MIT-License
|
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
2018-01-04 18:14:31 +01:00
|
|
|
* Copyright (c) 2011-2018, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2018, Andrei Alexeyev <akari@alienslab.net>.
|
2017-10-04 07:07:04 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2017-11-25 20:45:11 +01:00
|
|
|
#include "taisei.h"
|
2017-10-04 07:07:04 +02:00
|
|
|
|
|
|
|
#ifndef __GNUC__ // clang defines this too
|
2018-01-12 19:26:07 +01:00
|
|
|
#define __attribute__(...)
|
|
|
|
#define __extension__
|
|
|
|
#define PRAGMA(p)
|
2017-10-04 07:07:04 +02:00
|
|
|
#else
|
2018-01-12 19:26:07 +01:00
|
|
|
#define PRAGMA(p) _Pragma(#p)
|
|
|
|
#define USE_GNU_EXTENSIONS
|
2017-10-04 07:07:04 +02:00
|
|
|
#endif
|
|
|
|
|
2017-12-24 16:54:06 +01:00
|
|
|
#ifdef __USE_MINGW_ANSI_STDIO
|
2018-01-12 19:26:07 +01:00
|
|
|
#define FORMAT_ATTR __MINGW_PRINTF_FORMAT
|
2017-10-04 07:07:04 +02:00
|
|
|
#else
|
2018-01-12 19:26:07 +01:00
|
|
|
#define FORMAT_ATTR printf
|
2017-10-04 07:07:04 +02:00
|
|
|
#endif
|