sm64ex-coop/include/make_const_nonconst.h

12 lines
335 B
C
Raw Normal View History

2019-11-03 20:36:27 +01:00
#ifndef MAKE_CONST_NONCONST_H
#define MAKE_CONST_NONCONST_H
2020-04-03 20:57:26 +02:00
#ifdef TARGET_N64
2019-11-03 20:36:27 +01:00
// IDO sometimes puts const variables in .rodata and sometimes in .data, which breaks ordering.
2020-04-03 20:57:26 +02:00
// This makes sure all variables are put into the same section (.data). We need to do this for
// both IDO and gcc for TARGET_N64.
2019-11-03 20:36:27 +01:00
#define const
#endif
#endif