Mercurial > minori
annotate include/core/array.h @ 30:4dc59e1a81a3
ci/win32: fix echo-ing to binfmt
ok, so apparently bash AUTOMATICALLY writes a newline to the end of
a file. why does it do this? nobody knows, but we can avoid it by
simply adding the `-n` flag
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 20 Sep 2023 00:53:11 -0400 |
| parents | 8a4122caaf2f |
| children | 329b7921a6be |
| rev | line source |
|---|---|
|
19
d05b1be2f3a6
anime_list.cpp: fix build failures on linux
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
1 #ifndef __core__array_h |
|
d05b1be2f3a6
anime_list.cpp: fix build failures on linux
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
2 #define __core__array_h |
|
d05b1be2f3a6
anime_list.cpp: fix build failures on linux
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
3 |
|
20
8a4122caaf2f
*: redefine ARRAYSIZE on platforms that don't include it
Paper <mrpapersonic@gmail.com>
parents:
19
diff
changeset
|
4 #ifndef ARRAYSIZE |
|
19
d05b1be2f3a6
anime_list.cpp: fix build failures on linux
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
5 #define ARRAYSIZE(x) \ |
|
20
8a4122caaf2f
*: redefine ARRAYSIZE on platforms that don't include it
Paper <mrpapersonic@gmail.com>
parents:
19
diff
changeset
|
6 (sizeof(x) / sizeof(x[0])) |
|
8a4122caaf2f
*: redefine ARRAYSIZE on platforms that don't include it
Paper <mrpapersonic@gmail.com>
parents:
19
diff
changeset
|
7 #endif |
|
19
d05b1be2f3a6
anime_list.cpp: fix build failures on linux
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
8 |
|
d05b1be2f3a6
anime_list.cpp: fix build failures on linux
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
9 #endif // __core__array_h |
