summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-31 08:52:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-31 08:52:56 +0000
commitd8c15488b052a0cdf4ec3e1d6f400d4ebb9c5cd3 (patch)
tree0cac840e676726ff8e10327126168de5cec82e4b /win32
parent66e8c4e0124c626f98d2f6272bc64e00c535bf1d (diff)
downloadruby-d8c15488b052a0cdf4ec3e1d6f400d4ebb9c5cd3.tar.gz
ruby-d8c15488b052a0cdf4ec3e1d6f400d4ebb9c5cd3.tar.xz
ruby-d8c15488b052a0cdf4ec3e1d6f400d4ebb9c5cd3.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@18991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 53bcc6e32..9658d5d96 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