From: Ingo Ruhnke Date: Thu, 26 Nov 2009 22:08:02 +0000 (+0000) Subject: Renamed main() to run X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b24250d3cf9159c017eeb7c49d22e956aea7dcaa;p=supertux.git Renamed main() to run SVN-Revision: 6121 --- diff --git a/src/main.cpp b/src/main.cpp index 44f7d12ab..2b4bd2160 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -20,7 +20,7 @@ int main(int argc, char** argv) { - return Main().SDL_main(argc, argv); + return Main().run(argc, argv); } /* EOF */ diff --git a/src/supertux/main.cpp b/src/supertux/main.cpp index 0f6e41493..46c3e9630 100644 --- a/src/supertux/main.cpp +++ b/src/supertux/main.cpp @@ -528,7 +528,7 @@ static inline void timelog(const char* ) #endif int -Main::main(int argc, char** argv) +Main::run(int argc, char** argv) { int result = 0; diff --git a/src/supertux/main.hpp b/src/supertux/main.hpp index fc9014448..22e4b1350 100644 --- a/src/supertux/main.hpp +++ b/src/supertux/main.hpp @@ -34,7 +34,9 @@ private: void wait_for_event(float min_delay, float max_delay); public: - int main(int argc, char** argv); + /** We call it run() instead of main() as main collides with + #define main SDL_main from SDL.h */ + int run(int argc, char** argv); }; #endif