summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2012-07-19 14:30:21 -0400
committerJan Dubois <jand@activestate.com>2012-07-30 16:18:02 -0700
commit50e8e1f58c8f44de664c58d031a1fcc6880830c1 (patch)
tree7d08fb056cd8c63be58d9e736164d85d8eddefd5 /win32/win32.h
parent03c98af06fb1276cf98494ab176371eeabcdc5a2 (diff)
downloadperl-50e8e1f58c8f44de664c58d031a1fcc6880830c1.tar.gz
Add MSVC noreturn to inside of the interp
12a2785c7e86f586a05cad9ff90ce673c68c3115 only turned on MSVC noreturn for external DLL XS modules, not inside the interp (perl5**.dll). This commit fixes that. For me (bulk88), with an -O1 build, perl517.dll dropped from 1044KB to 1036KB after applying this.
Diffstat (limited to 'win32/win32.h')
-rwxr-xr-xwin32/win32.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 877db5f70b..808ea19ecc 100755
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -75,6 +75,10 @@
# define PERL_CALLCONV_NO_RET __declspec(dllimport) __declspec(noreturn)
# endif
# endif
+#else /* MSVC noreturn support inside the interp */
+# ifdef _MSC_VER
+# define PERL_CALLCONV_NO_RET __declspec(noreturn)
+# endif
#endif
#define WIN32_LEAN_AND_MEAN