summaryrefslogtreecommitdiff
path: root/mg.h
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2013-03-29 17:54:40 -0400
committerTony Cook <tony@develop-help.com>2013-06-04 20:04:42 +1000
commit1b1e45eba1d55adaa3c59ceac3ec777b9cbc2972 (patch)
tree8b603a9492340ed68e8965cf7d7263efe2e20616 /mg.h
parent9fba1c80b4e33c6635599fc0b17262f3e4467d8a (diff)
downloadperl-1b1e45eba1d55adaa3c59ceac3ec777b9cbc2972.tar.gz
remove obsolete STRUCT_MGVTBL_DEFINITION from mg.h
STRUCT_MGVTBL_DEFINITION was added in commit 0f4eea8fa1 in 5.004_67 as part of ML thread "[PATCH 5.004_67] Fixes for broken MS compiler" and stopped being used in commit acfe0abced in 5.7.2. STRUCT_MGVTBL_DEFINITION was used to provide binary compatibility between C++ objs and C structs, where extra C++ data was stored with each function * raising the member size to 16 bytes instead of 4 on a 32 bit build, also see http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/2793a64f-ec09-495c-b995-4f5b98a26321 The define in struct mgvtbl is a left over that wasn't removed. Remove it to improve code readability.
Diffstat (limited to 'mg.h')
-rw-r--r--mg.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/mg.h b/mg.h
index 995bc5eb1a..4114941526 100644
--- a/mg.h
+++ b/mg.h
@@ -8,9 +8,6 @@
*
*/
-#ifdef STRUCT_MGVTBL_DEFINITION
-STRUCT_MGVTBL_DEFINITION;
-#else
struct mgvtbl {
int (*svt_get) (pTHX_ SV *sv, MAGIC* mg);
int (*svt_set) (pTHX_ SV *sv, MAGIC* mg);
@@ -22,7 +19,6 @@ struct mgvtbl {
int (*svt_dup) (pTHX_ MAGIC *mg, CLONE_PARAMS *param);
int (*svt_local)(pTHX_ SV *nsv, MAGIC *mg);
};
-#endif
struct magic {
MAGIC* mg_moremagic;