diff tests/plrtest.c @ 794:319792b2af4a

Fix non-fallback loading of JSSMod.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 18 Oct 2013 14:38:59 +0300
parents 21ad08cdf408
children 97ecc0a9c21f
line wrap: on
line diff
--- a/tests/plrtest.c	Fri Oct 18 14:31:12 2013 +0300
+++ b/tests/plrtest.c	Fri Oct 18 14:38:59 2013 +0300
@@ -142,7 +142,6 @@
 #ifdef JSS_SUP_XM
     fprintf(stderr, "* Trying XM...\n");
     result = jssLoadXM(file, &mod);
-#endif
 #ifdef JSS_SUP_JSSMOD
     if (result != 0)
     {
@@ -151,6 +150,12 @@
         result = jssLoadJSSMOD(file, &mod);
     }
 #endif
+#else
+#ifdef JSS_SUP_JSSMOD
+    dmMsg(1, "* Trying JSSMOD ...\n");
+    result = jssLoadJSSMOD(file, &mod);
+#endif
+#endif
     dmf_close(file);
 
     if (result != DMERR_OK)