Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f301dca

Browse files
committed
Added img stuff (within #ifdef, so they're easy to remove)
1 parent c263286 commit f301dca

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Mac/Modules/config.c

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,18 @@ extern void initRes();
289289
extern void initSnd();
290290
extern void initWin();
291291

292+
#define HAVE_IMG
293+
#ifdef HAVE_IMG
294+
extern void initimgcolormap();
295+
extern void initimgformat();
296+
extern void initimggif();
297+
extern void initimgjpeg();
298+
extern void initimgppm();
299+
extern void initimgpgm();
300+
extern void initimgtiff();
301+
extern void initimgop();
302+
#endif
303+
292304
/* -- ADDMODULE MARKER 1 -- */
293305

294306
extern void initmarshal();
@@ -346,6 +358,17 @@ struct {
346358
{"Win", initWin},
347359
{"Res", initRes},
348360

361+
#ifdef HAVE_IMG
362+
{"imgcolormap", initimgcolormap},
363+
{"imgformat", initimgformat},
364+
{"imggif", initimggif},
365+
{"imgjpeg", initimgjpeg},
366+
{"imgppm", initimgppm},
367+
{"imgpgm", initimgpgm},
368+
{"imgtiff", initimgtiff},
369+
{"imgop", initimgop},
370+
#endif
371+
349372
/* -- ADDMODULE MARKER 2 -- */
350373

351374
/* This module "lives in" with marshal.c */

0 commit comments

Comments
 (0)