From 70b98dd4af780486e2159e04db766e7f6453d7d8 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 31 Aug 2008 08:52:56 +0000 Subject: * lib/mkmf.rb (try_func, try_var, have_struct_member), (scalar_ptr_type?, scalar_type?): use MAIN_DOES_NOTHING. * lib/mkmf.rb (MAIN_DOES_NOTHING): defaults to ordinary main. * win32/Makefile.sub (config): for MAIN_DOES_NOTHING for wince. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/Makefile.sub | 3 +++ 1 file changed, 3 insertions(+) (limited to 'win32') diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 53bcc6e32b..9658d5d96e 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -523,6 +523,9 @@ config.status: $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.su @exit <<$@ # Generated automatically by Makefile.sub. s,@SHELL@,$$(COMSPEC),;t t +!if defined(WIN32_WCE) +s,@MAIN_DOES_NOTHING@,int WinMain(HINSTANCE h, HINSTANCE hp, LPWSTR s, int n) {return 0;},;t t +!endif s,@BUILD_FILE_SEPARATOR@,\,;t t s,@PATH_SEPARATOR@,;,;t t s,@CFLAGS@,$(CFLAGS),;t t -- cgit v1.2.3