summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Main.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Main.cc b/src/Main.cc
index a01ad24..aa3fd3e 100644
--- a/src/Main.cc
+++ b/src/Main.cc
@@ -200,7 +200,11 @@ int Balau::Main::bootstrap(int argc, char ** argv) {
extern "C" {
-int main(int argc, char ** argv) {
+#ifndef BALAU_MAIN
+#define BALAU_MAIN main
+#endif
+
+int BALAU_MAIN(int argc, char ** argv) {
setlocale(LC_ALL, "");
Balau::Main mainClass;
return mainClass.bootstrap(argc, argv);