X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fplugin_lib.h;h=a1400e9371e64d083ed444f9e54f7bc4e0cfdc2f;hp=cfb9bd10a4983c419ee5c3cfa958894ca6103f47;hb=4f3639fab62fa95f4bdc620b2e3500e717a0fcf3;hpb=a7ce1fc5856aa569f831dc3f41d4d812374e95b5 diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h index cfb9bd10..a1400e93 100644 --- a/frontend/plugin_lib.h +++ b/frontend/plugin_lib.h @@ -27,3 +27,7 @@ void pl_fbdev_flip(void); void pl_fbdev_finish(void); void pl_text_out16(int x, int y, const char *texto, ...); + +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) +#endif