diff --git a/lib/x86/x86state.c b/lib/x86/x86state.c
index 0faea045ad7ee773cc36fbcf1cfc6e4fa218a7d6..9f8bceb5348875bc9c416d2494c3bfc0d20d5049 100644
--- a/lib/x86/x86state.c
+++ b/lib/x86/x86state.c
@@ -19,6 +19,7 @@
 
 #if defined(OC_X86_ASM)
 
+#if defined(OC_STATE_USE_VTABLE)
 /*This table has been modified from OC_FZIG_ZAG by baking a 4x4 transpose into
    each quadrant of the destination.*/
 static const unsigned char OC_FZIG_ZAG_MMX[128]={
@@ -39,6 +40,7 @@ static const unsigned char OC_FZIG_ZAG_MMX[128]={
   64,64,64,64,64,64,64,64,
   64,64,64,64,64,64,64,64
 };
+#endif
 
 /*This table has been modified from OC_FZIG_ZAG by baking an 8x8 transpose into
    the destination.*/