summaryrefslogtreecommitdiffstats
path: root/src/native/tinype/tiny.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-09-24 14:59:26 +0200
committerSven Gothel <[email protected]>2015-09-24 14:59:26 +0200
commit0e723ff0866919cbc4ddfc3d7773c3485252eba3 (patch)
tree6987b633ba7712c15ec1b17f959de60a2857e9c4 /src/native/tinype/tiny.c
parentbe9614d73e69159fbba5b458a4450b5df3a6613b (diff)
Bug 1231: Add Windows x86_64 test executable ; Use 'WinMain' for Windows test-executable ; Use CustomInflate for Performance
- Use 'WinMain' for Windows test-executable This may have little difference than using std 'main' entry - Add Windows x86_64 test executable Since the reporter claims the test executable works well on Windows i386, maybe utilizing a x86_64 test executable on same VM fixes the issue - Use CustomInflate for Performance - Skips GZIP header - Adds own custom header [magic, deflate-size, inflate-size] - Own header allows simplified I/O read and deflation
Diffstat (limited to 'src/native/tinype/tiny.c')
-rw-r--r--src/native/tinype/tiny.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/native/tinype/tiny.c b/src/native/tinype/tiny.c
index 80f9518..6d2de3a 100644
--- a/src/native/tinype/tiny.c
+++ b/src/native/tinype/tiny.c
@@ -1,6 +1,13 @@
+#undef UNICODE
+#define UNICODE
+#include <windows.h>
+
// const char * id = "JogAmp Windows Universal Test PE Executable";
-int __main()
+// int __main()
+// int main()
+// int main( int argc, char* argv[] )
+int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
return 0;
}