src/SDL12_compat.c
changeset 84 df9e8ff61b45
parent 83 3dc6727acc6b
child 85 03415a8f246a
equal deleted inserted replaced
83:3dc6727acc6b 84:df9e8ff61b45
   770 
   770 
   771 static void *
   771 static void *
   772 LoadSDL20Symbol(const char *fn, int *okay)
   772 LoadSDL20Symbol(const char *fn, int *okay)
   773 {
   773 {
   774     void *retval = NULL;
   774     void *retval = NULL;
   775     if (*okay)  /* only bother trying if we haven't previously failed. */
   775     if (*okay) { /* only bother trying if we haven't previously failed. */
   776     {
       
   777         retval = LookupSDL20Sym(fn);
   776         retval = LookupSDL20Sym(fn);
   778 if (!retval) { fprintf(stderr, "WARNING: LOAD FAILED: %s\n", fn); }
   777         if (retval == NULL) {
   779 //        if (retval == NULL)
   778             /* Flip to 1 to warn but maybe work if nothing calls that function, flip to zero to fail out. */
   780 //            *okay = 0;
   779             #if 0
       
   780             fprintf(stderr, "WARNING: LOAD FAILED: %s\n", fn);
       
   781             #else
       
   782             *okay = 0;
       
   783             #endif
       
   784         }
   781     }
   785     }
   782     return retval;
   786     return retval;
   783 }
   787 }
   784 
   788 
   785 static void
   789 static void