summaryrefslogtreecommitdiff
path: root/bcc32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-26 09:18:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-26 09:18:21 +0000
commit195a7da4ec0b726005b22c8f88f353d7c3f24bfc (patch)
tree582c616d06e108d0d86a7bffb64d051dc86ea01f /bcc32
parent8e9a9cf0ec11550ec1c76dee354240e44dff1b97 (diff)
* configure.in (config.h): add include guard.
* win32/Makefile.sub, bcc32/Makefile.sub (config.h): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bcc32')
-rw-r--r--bcc32/Makefile.sub5
1 files changed, 5 insertions, 0 deletions
diff --git a/bcc32/Makefile.sub b/bcc32/Makefile.sub
index 24941e7150..1cd26a8643 100644
--- a/bcc32/Makefile.sub
+++ b/bcc32/Makefile.sub
@@ -248,10 +248,14 @@ config: config.status
config.status: $(CONFIG_H)
+guard = INCLUDE_RUBY_CONFIG_H
+
$(CONFIG_H): $(MKFILES) $(srcdir)/bcc32/Makefile.sub
@if not exist $(arch_hdrdir:/=\) md $(arch_hdrdir:/=\)
@if not exist $(arch_hdrdir:/=\)\ruby md $(arch_hdrdir:/=\)\ruby
@$(IFCHANGE) $(RUBY_CONFIG_H:/=\) &&|
+\#ifndef $(guard)
+\#define $(guard) 1
\#define NO_BIG_INLINE 1
\#define HAVE_SYS_TYPES_H 1
\#define HAVE_SYS_STAT_H 1
@@ -364,6 +368,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/bcc32/Makefile.sub
\#define DLEXT ".so"
\#define RUBY_LIB_PREFIX "/lib/ruby"
\#define RUBY_PLATFORM "$(ARCH)-$(OS)"
+\#endif /* $(guard) */
|
@exit > $(@:/=\)