guard PER references
diff --git a/skeletons/VisibleString.c b/skeletons/VisibleString.c
index 0f4dec5..7076da5 100644
--- a/skeletons/VisibleString.c
+++ b/skeletons/VisibleString.c
@@ -27,8 +27,13 @@
OCTET_STRING_encode_der,
OCTET_STRING_decode_xer_utf8,
OCTET_STRING_encode_xer_utf8,
+#ifdef ASN_DISABLE_PER_SUPPORT
+ 0,
+ 0,
+#else
OCTET_STRING_decode_uper,
OCTET_STRING_encode_uper,
+#endif /* ASN_DISABLE_PER_SUPPORT */
0, /* Use generic outmost tag fetcher */
asn_DEF_VisibleString_tags,
sizeof(asn_DEF_VisibleString_tags)