You've already forked ultrasm64-2
mirror of
https://github.com/HackerN64/ultrasm64-2.git
synced 2026-01-21 10:38:08 -08:00
Refresh 16.5
This commit is contained in:
@@ -1,18 +1,28 @@
|
||||
#ifndef MACROS_H
|
||||
#define MACROS_H
|
||||
|
||||
// Check for egcs compiler
|
||||
#if defined (__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ == 91)
|
||||
#define EGCS_GCC
|
||||
#endif
|
||||
|
||||
#ifndef _LANGUAGE_ASSEMBLY
|
||||
#include "platform_info.h"
|
||||
|
||||
// Since we are using both compilers to match iQue, ignore these errors.
|
||||
#ifndef EGCS_GCC
|
||||
|
||||
#ifndef __sgi
|
||||
#define GLOBAL_ASM(...)
|
||||
#endif
|
||||
|
||||
#if !defined(__sgi) && (!defined(NON_MATCHING) || !defined(AVOID_UB))
|
||||
// asm-process isn't supported outside of IDO, and undefined behavior causes
|
||||
// crashes.
|
||||
// asm-process isn't supported outside of IDO, and undefined behavior causes crashes.
|
||||
#error Matching build is only possible on IDO; please build with NON_MATCHING=1.
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#define ARRAY_COUNT(arr) (s32)(sizeof(arr) / sizeof(arr[0]))
|
||||
|
||||
#define GLUE(a, b) a ## b
|
||||
@@ -46,14 +56,14 @@
|
||||
#endif
|
||||
|
||||
// Align to 8-byte boundary for DMA requirements
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) && !defined(EGCS_GCC)
|
||||
#define ALIGNED8 __attribute__((aligned(8)))
|
||||
#else
|
||||
#define ALIGNED8
|
||||
#endif
|
||||
|
||||
// Align to 16-byte boundary for audio lib requirements
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) && !defined(EGCS_GCC)
|
||||
#define ALIGNED16 __attribute__((aligned(16)))
|
||||
#else
|
||||
#define ALIGNED16
|
||||
@@ -88,4 +98,6 @@
|
||||
#define FORCE_BSS
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif // MACROS_H
|
||||
|
||||
Reference in New Issue
Block a user