summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authormichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-21 13:52:21 +0000
committermichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-21 13:52:21 +0000
commita443067ba2dec25185260857bdb22c5637e263c9 (patch)
tree7d2babeeba45c9be6ad9c0ec15e89c4a0dd80ca9 /defines.h
parent32f85f3caa42dd0d896b1d049dd74bcb6b4beb12 (diff)
Exchange do { } while (0) for ((void)0)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/defines.h b/defines.h
index 81ed18a..334be52 100644
--- a/defines.h
+++ b/defines.h
@@ -137,10 +137,10 @@ void xfree _((void*));
#define EXTERN extern
#endif
+#if defined(sparc) || defined(__sparc__)
static inline void
flush_register_windows(void)
{
-#if defined(sparc) || defined(__sparc__)
# if defined(__sparc_v9__) || defined(__arch64__)
asm volatile ("flushw" : :);
# elif defined(linux) || defined(__linux__)
@@ -148,9 +148,11 @@ flush_register_windows(void)
# else /* Solaris, OpenBSD, NetBSD, etc. */
asm volatile ("ta 0x03");
# endif /* trap always to flush register windows if we are on a Sparc system */
-#endif
}
-#define FLUSH_REGISTER_WINDOWS flush_register_windows()
+# define FLUSH_REGISTER_WINDOWS flush_register_windows()
+#else
+# define FLUSH_REGISTER_WINDOWS ((void)0)
+#endif
#if defined(DOSISH)
#define PATH_SEP ";"