summaryrefslogtreecommitdiffstats
path: root/src/pedro/pedromain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pedro/pedromain.cpp')
-rw-r--r--src/pedro/pedromain.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/pedro/pedromain.cpp b/src/pedro/pedromain.cpp
new file mode 100644
index 000000000..9cee6d992
--- /dev/null
+++ b/src/pedro/pedromain.cpp
@@ -0,0 +1,32 @@
+#include <stdio.h>
+
+#include "pedrogui.h"
+
+int main(int argc, char *argv[])
+{
+ Gtk::Main kit(argc, argv);
+
+ Pedro::PedroGui window;
+
+ kit.run(window);
+
+ return 0;
+}
+
+
+
+
+#ifdef __WIN32__
+#include <windows.h>
+
+
+extern "C" int __export WINAPI
+WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
+ char *lpszCmdLine, int nCmdShow)
+{
+ int ret = main (__argc, __argv);
+ return ret;
+}
+
+#endif
+