notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9579f3
)
libretro: only use posix_memalign when it's safe
author
Tobias Jakobi
<tjakobi@math.uni-bielefeld.de>
Tue, 4 Mar 2014 20:55:15 +0000
(21:55 +0100)
committer
notaz
<notasas@gmail.com>
Sat, 20 Dec 2014 00:57:24 +0000
(
02:57
+0200)
frontend/libretro.c
patch
|
blob
|
blame
|
history
diff --git
a/frontend/libretro.c
b/frontend/libretro.c
index
94d649e
..
51c0a6e
100644
(file)
--- a/
frontend/libretro.c
+++ b/
frontend/libretro.c
@@
-989,7
+989,11
@@
void retro_init(void)
exit(1);
}
+#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L)
posix_memalign(&vout_buf, 16, VOUT_MAX_WIDTH * VOUT_MAX_HEIGHT * 2);
+#else
+ vout_buf = malloc(VOUT_MAX_WIDTH * VOUT_MAX_HEIGHT * 2);
+#endif
if (environ_cb(RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY, &dir) && dir)
{