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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user