diff options
author | pixel <pixel> | 2006-02-01 20:39:37 +0000 |
---|---|---|
committer | pixel <pixel> | 2006-02-01 20:39:37 +0000 |
commit | 63c5e5338d734c07910b351ea83ae9866f462ea8 (patch) | |
tree | 32d20f0d1de8b254e36d1eee3c9aa46cb3b2ea8b /include | |
parent | 6daac4eb3604736e20e8af5733f698eb144f0c2a (diff) |
Fixing that fucking SDL_main thing, once and for all.
Diffstat (limited to 'include')
-rw-r--r-- | include/Main.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/Main.h b/include/Main.h index 596300d..8b404dc 100644 --- a/include/Main.h +++ b/include/Main.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Main.h,v 1.18 2005-12-01 15:57:38 pixel Exp $ */ +/* $Id: Main.h,v 1.19 2006-02-01 20:39:37 pixel Exp $ */ #ifndef __MAIN_H__ #define __MAIN_H__ @@ -49,13 +49,13 @@ Appli * Application; \ class Appli : public Main { #define CODE_ENDS }; \ -int main(int argc, char ** argv, char ** enve) { \ +extern "C" { int main(int argc, char ** argv) { \ int r; \ setlocale(LC_ALL, ""); \ Application = new Appli(); \ - r = Main::truemain(Application, argc, argv, enve); \ + r = Main::truemain(Application, argc, argv, 0); \ delete Application; \ return r; \ -} +} } #endif |