Ecere Software
/
sdk
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ecere/gfx/newFonts: Fixes to build with Emscripten
[sdk]
/
ecere
/
src
/
gfx
/
newFonts
/
cc
/
mmbitmap.c
diff --git
a/ecere/src/gfx/newFonts/cc/mmbitmap.c
b/ecere/src/gfx/newFonts/cc/mmbitmap.c
index
dcd2bf0
..
fb18510
100644
(file)
--- a/
ecere/src/gfx/newFonts/cc/mmbitmap.c
+++ b/
ecere/src/gfx/newFonts/cc/mmbitmap.c
@@
-40,7
+40,11
@@
int mmBitMapInit( mmBitMap *bitmap, size_t entrycount, int initvalue )
bitmap->map = 0;
if( mapsize )
{
+#ifdef MM_ATOMIC_SUPPORT
if( !( bitmap->map = malloc( mapsize * sizeof(mmAtomicL) ) ) )
+#else
+ if( !( bitmap->map = malloc( mapsize * sizeof(long) ) ) )
+#endif
return 0;
}
bitmap->mapsize = mapsize;