mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-12-04 14:46:31 -05:00
Add check for stdint.h, since Solaris doesn't have it. This is needed
on Linux for uint64_t, but Solaris defines this in sys/types.h. Use check where appropriate, and also add typedefs for Win32. svn path=/trunk/timing/; revision=2206
This commit is contained in:
parent
15ec22923f
commit
5ef3b00332
@ -3,13 +3,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#ifdef HAVE_STDINT_H
|
||||||
|
# include <stdint.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <mmsystem.h>
|
# include <mmsystem.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "timing.h"
|
#include "timing.h"
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
#ifndef __TIMING_H__
|
#ifndef __TIMING_H__
|
||||||
#define __TIMING_H__
|
#define __TIMING_H__
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <sys/types.h>
|
||||||
|
#ifdef HAVE_STDINT_H
|
||||||
|
# include <stdint.h>
|
||||||
|
#endif
|
||||||
|
#ifdef _WIN32
|
||||||
|
typedef int64_t __int64;
|
||||||
|
typedef uint64_t unsigned __int64;
|
||||||
|
#endif
|
||||||
|
|
||||||
uint64_t timing_get_time(void);
|
uint64_t timing_get_time(void);
|
||||||
void timing_sleep(uint64_t sleeptime);
|
void timing_sleep(uint64_t sleeptime);
|
||||||
|
Loading…
Reference in New Issue
Block a user