diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl
index dba96cba5e..7fd99959f1 100644
--- a/util/pl/VC-32.pl
+++ b/util/pl/VC-32.pl
@@ -261,6 +261,8 @@ if ($shlib && $FLAVOR !~ /CE/)
        {
        $mlflags.=" $lflags /dll";
        $lib_cflag.=" -D_WINDLL";
+       if ($base_cflags !~ /-D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE/)
+       {
        #
        # Engage Applink...
        #
@@ -286,6 +288,7 @@ ___
 CRYPTOOBJ=ms\uptable.obj $(CRYPTOOBJ)
 ___
        }
+       }
 elsif ($shlib && $FLAVOR =~ /CE/)
        {
        $mlflags.=" $lflags /dll";
