#include <dlfcn.h>
#include <stdio.h>
-#ifdef SK_BUILD_FOR_WIN
- #define snprintf _snprintf
-#endif
-
void usage() {
printf("[USAGE] skia_launcher program_name [options]\n");
printf(" program_name: the skia program you want to launch (e.g. tests, bench)\n");
{
// attempt to lookup the location of the shared libraries
char libraryLocation[100];
- snprintf(libraryLocation, SK_ARRAY_COUNT(libraryLocation),
- "%s/lib%s.so", appLocation, libraryName);
+ sprintf(libraryLocation, "%s/lib%s.so", appLocation, libraryName);
if (!file_exists(libraryLocation)) {
printf("ERROR: Unable to find the '%s' library in the Skia App.\n", libraryName);
printf("ERROR: Did you provide the correct program_name?\n");
#include <stdio.h>
#include <stdarg.h>
-#ifdef SK_BUILD_FOR_WIN
- #define snprintf _snprintf
-#endif
-
namespace {
void *CreateThreadError() {
return SkNEW_ARGS(SkError, (kNoError_SkError));
break;
}
- snprintf(str, ERROR_STRING_LENGTH, "%s: ", error_name);
+ sprintf( str, "%s: ", error_name );
int string_left = SkToInt(ERROR_STRING_LENGTH - strlen(str));
str += strlen(str);