mojoshader_preprocessor.c
changeset 867 f5f491d2b82b
parent 865 4eb06464212d
child 869 5bd359b047f3
--- a/mojoshader_preprocessor.c	Wed Feb 24 21:21:54 2010 -0500
+++ b/mojoshader_preprocessor.c	Wed Feb 24 21:23:58 2010 -0500
@@ -2102,8 +2102,11 @@
 
     if (!m) m = MOJOSHADER_internal_malloc;
     if (!f) f = MOJOSHADER_internal_free;
+
+#if !MOJOSHADER_FORCE_INCLUDE_CALLBACKS
     if (!include_open) include_open = MOJOSHADER_internal_include_open;
     if (!include_close) include_close = MOJOSHADER_internal_include_close;
+#endif
 
     Preprocessor *pp = preprocessor_start(filename, source, sourcelen,
                                           include_open, include_close,