mirror of
https://github.com/zeldaret/mm.git
synced 2024-11-27 06:40:36 +00:00
7210cfac2f
* [Audio 6/?] Build Soundfonts and the Soundfont Table * Fix bss * Maybe fix warnings * Improve lots of error messages * Suggested changes from OoT PR * Suggested changes * Make soundfont_table.h generation depend on the samplebank xmls since they are read, report from which soundfont the invalid pointer indirect warning originates from
18 lines
553 B
C
18 lines
553 B
C
#ifndef ATTRIBUTES_H
|
|
#define ATTRIBUTES_H
|
|
|
|
// If not building with a modern GCC-like compiler then make any use of __attribute__ a no-op
|
|
#if (!defined(__GNUC__) && !defined(__clang__)) || defined(M2CTX) || defined(__sgi)
|
|
#ifndef __attribute__
|
|
#define __attribute__(x)
|
|
#endif
|
|
#endif
|
|
|
|
#define UNUSED __attribute__((unused))
|
|
#define FALLTHROUGH __attribute__((fallthrough))
|
|
#define NORETURN __attribute__((noreturn))
|
|
#define NO_REORDER __attribute__((no_reorder))
|
|
#define SECTION_DATA __attribute__((section(".data")))
|
|
|
|
#endif
|