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=7e400e1c1d60c94128b3b44019be9e9ad52a033c;hpb=722285599b1ce45ca435f484b0f34a5e568487a1 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