diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-07-05 00:26:27 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2025-02-07 21:54:55 +0100 |
commit | 962f29ba59b3b064d2e6e4d6274f4b4ff09a6412 (patch) | |
tree | abda33f33ede207f9b57a93663bb4a1cc666f8b9 /example-cross-compile-cpp/windll.cc | |
parent | b07a942993efe44e5dbdff8088b0ed87c79fc433 (diff) | |
download | zig-playground-962f29ba59b3b064d2e6e4d6274f4b4ff09a6412.tar.gz zig-playground-962f29ba59b3b064d2e6e4d6274f4b4ff09a6412.zip |
cross: mini cpp cross compile using zig compiler
Diffstat (limited to 'example-cross-compile-cpp/windll.cc')
-rw-r--r-- | example-cross-compile-cpp/windll.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/example-cross-compile-cpp/windll.cc b/example-cross-compile-cpp/windll.cc new file mode 100644 index 0000000..890117c --- /dev/null +++ b/example-cross-compile-cpp/windll.cc @@ -0,0 +1,5 @@ +#include <stdio.h> + +__declspec(dllexport) void say(const char* str) { + if (str) puts(str); +} |