diff options
Diffstat (limited to 'Tests/CustomCommand/generator.cxx')
-rw-r--r-- | Tests/CustomCommand/generator.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/CustomCommand/generator.cxx b/Tests/CustomCommand/generator.cxx index 99da90c..cceac07 100644 --- a/Tests/CustomCommand/generator.cxx +++ b/Tests/CustomCommand/generator.cxx @@ -8,8 +8,12 @@ int main(int argc, char *argv[]) return 1; } FILE *fp = fopen(argv[1],"w"); - +#ifdef GENERATOR_EXTERN fprintf(fp,"int generated() { return 3; }\n"); +#else + fprintf(fp,"extern int gen_redirect(void);\n"); + fprintf(fp,"int generated() { return gen_redirect(); }\n"); +#endif fclose(fp); return 0; } |