Revert "Remove unused typedef to make Lua compile"

This reverts commit a58b8ec57898cff3839b76990e7eca92e75074cf.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/8e123507
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/8e123507
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/8e123507

Branch: refs/heads/sphinx-docs
Commit: 8e12350728b1070afff046cc6745cceddf5d7ec0
Parents: 880bca9
Author: Leif Hedstrom <[email protected]>
Authored: Sat Apr 27 19:11:05 2013 -0600
Committer: Leif Hedstrom <[email protected]>
Committed: Sat Apr 27 19:11:05 2013 -0600

----------------------------------------------------------------------
 plugins/experimental/lua/hook.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8e123507/plugins/experimental/lua/hook.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/lua/hook.cc b/plugins/experimental/lua/hook.cc
index 4572910..e4a4e4e 100644
--- a/plugins/experimental/lua/hook.cc
+++ b/plugins/experimental/lua/hook.cc
@@ -125,6 +125,8 @@ struct inline_tuple
 
   static void * allocate(const first_type first, const second_type second) {
 #if defined(INLINE_LUA_HOOK_REFERENCE)
+    typedef char __size_check[sizeof(this_type) == sizeof(void *) ? 0 : -1];
+
     this_type obj;
     obj.first() = first;
     obj.second() = second;

Reply via email to