#include <stdint.h>
-#if defined(WIN32) || defined(_XBOX)
+#ifdef _WIN32
/* Windows is little endian only */
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN 4321
typedef unsigned char uint8_t;
-#else /* !WIN32 */
+#else /* !_WIN32 */
#include <sys/param.h>
#define __LITTLE_ENDIAN LITTLE_ENDIAN
#endif
-#endif /* !WIN32 */
+#endif /* !_WIN32 */
/* define default endianness */
#ifndef __LITTLE_ENDIAN
AVal home, hpre;
date[0] = '\0';
-#if defined(WIN32) || defined(_XBOX)
+#ifdef _WIN32
#ifdef _XBOX
hpre.av_val = "Q:";
hpre.av_len = 2;
#endif
#define DIRSEP "\\"
-#else /* !WIN32 */
+#else /* !_WIN32 */
hpre.av_val = "";
hpre.av_len = 0;
home.av_val = getenv("HOME");
static int HTTP_Post(RTMP *r, RTMPTCmd cmd, const char *buf, int len);
static int HTTP_read(RTMP *r, int fill);
-#ifndef WIN32
+#ifndef _WIN32
static int clk_tck;
#endif
{
#ifdef _DEBUG
return 0;
-#elif defined(WIN32)
+#elif defined(_WIN32)
return timeGetTime();
#else
struct tms t;
}
#undef OSS
-#ifdef WIN32
+#ifdef _WIN32
#define OSS "WIN"
#elif defined(__sun__)
#define OSS "SOL"
* http://www.gnu.org/copyleft/lgpl.html
*/
-#if defined(WIN32) || defined(_XBOX)
+#ifdef _WIN32
#ifdef _XBOX
#include <xtl.h>
#define sleep(n) Sleep(n*1000)
#define msleep(n) Sleep(n)
#define SET_RCVTIMEO(tv,s) int tv = s*1000
-#else /* !WIN32 && !_XBOX */
+#else /* !_WIN32 */
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/times.h>