diff options
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 |