@@ -286,11 +286,11 @@ if (s == NULL) { return(TCL_ERROR); } #ifdef USE_TCL_STUBS - if (index == 0) { + if (index == TCC_OUTPUT_MEMORY) { /* Only add this symbol if we are compiling to memory */ tcc_add_symbol(s, "tclStubsPtr", &tclStubsPtr); } tcc_define_symbol(s, "USE_TCL_STUBS", "1");