1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Replace sleep() with PRSleep() for cross-platform compiling

This commit is contained in:
gstellenberg
2009-07-12 22:17:03 -05:00
parent 583b7113c5
commit 0ca7e4c9f1
2 changed files with 10 additions and 1 deletions

View File

@@ -13,6 +13,13 @@
#ifndef PINPROCFW_H
#define PINPROCFW_H
#if defined(__WIN32__)
#include <windows.h>
#define PRSleep(milliseconds) Sleep(milliseconds)
#else
#define PRSleep(milliseconds) sleep(milliseconds/1000)
#endif
/* Legacy error codes for xsvfExecute from original XSVF player v2.0 */
#define XSVF_LEGACY_SUCCESS 1
#define XSVF_LEGACY_ERROR 0