diff options
author | Brad King <brad.king@kitware.com> | 2003-06-30 14:30:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-06-30 14:30:38 (GMT) |
commit | ef76ed76f8a31f706ee675160e5c57c34b608516 (patch) | |
tree | b0bad156b6f2fb3b4bfdb57a13a55a0b2d45f0bb /Source/kwsys/EncodeExecutable.c | |
parent | ac2de4f5defce85b7980d70656668d8aebc62079 (diff) | |
download | CMake-ef76ed76f8a31f706ee675160e5c57c34b608516.zip CMake-ef76ed76f8a31f706ee675160e5c57c34b608516.tar.gz CMake-ef76ed76f8a31f706ee675160e5c57c34b608516.tar.bz2 |
ENH: Added DLL support.
Diffstat (limited to 'Source/kwsys/EncodeExecutable.c')
-rw-r--r-- | Source/kwsys/EncodeExecutable.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/kwsys/EncodeExecutable.c b/Source/kwsys/EncodeExecutable.c index ef76eb2..9db0fb9 100644 --- a/Source/kwsys/EncodeExecutable.c +++ b/Source/kwsys/EncodeExecutable.c @@ -50,6 +50,7 @@ int main(int argc, char* argv[]) /* Prepend header comment. */ fprintf(ofp, "/*\n * DO NOT EDIT\n * This file is generated by:\n"); fprintf(ofp, " * %s\n */\n\n", argv[0]); + fprintf(ofp, "#include <Configure.h>\n\n"); fprintf(ofp, "#include <stdio.h>\n\n"); /* Split file up in 1024-byte chunks. */ @@ -74,8 +75,8 @@ int main(int argc, char* argv[]) fclose(ifp); /* Provide a function to write the data to a file. */ - fprintf(ofp, "extern int %sEncodedWriteArray%s(const char* fname)\n", - argv[3], argv[4]); + fprintf(ofp, "extern %s_EXPORT int %sEncodedWriteArray%s(const char* fname)\n", + argv[3], argv[3], argv[4]); fprintf(ofp, "{\n"); fprintf(ofp, " FILE* ofp = fopen(fname, \"wb\");\n"); fprintf(ofp, " if(!ofp) { return 0; }\n"); |