view Plugins/Input/sexypsf/spu/stdafx.h @ 854:61e7332e0652 trunk

[svn] - PSF2 support (everything is BORKED right now)
author nenolod
date Sun, 19 Mar 2006 12:51:03 -0800
parents 42cdc99e395a
children
line wrap: on
line source

/***************************************************************************
                           StdAfx.h  -  description
                             -------------------
    begin                : Wed May 15 2002
    copyright            : (C) 2002 by Pete Bernert
    email                : BlackDove@addcom.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version. See also the license.txt file for *
 *   additional informations.                                              *
 *                                                                         *
 ***************************************************************************/

//*************************************************************************//
// History of changes:
//
// 2002/05/15 - Pete
// - generic cleanup for the Peops release
//
//*************************************************************************//

//////////////////////////////////////////////////////////
// WINDOWS
//////////////////////////////////////////////////////////

#ifdef _WINDOWS

#ifdef _GCC
#define EXPORT_GCC  __declspec (dllexport)
#else
#define EXPORT_GCC
#endif

#define WIN32_LEAN_AND_MEAN
#define STRICT
#include <windows.h>                
#include <windowsx.h>
#include "mmsystem.h"
#include <process.h>
#include <stdlib.h>

// enable that for auxprintf();
//#define SMALLDEBUG
//#include <dbgout.h>
//void auxprintf (LPCTSTR pFormat, ...);

#define INLINE __inline

//////////////////////////////////////////////////////////
// LINUX
//////////////////////////////////////////////////////////
#else

#define EXPORT_GCC

#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/soundcard.h>
#include <unistd.h>
#ifndef NOTHREADLIB
#include <pthread.h>
#endif
#define RRand(range) (random()%range)
#include <string.h>
#include <sys/time.h>
#include <math.h>

#undef CALLBACK
#define CALLBACK
#define DWORD unsigned long
#define LOWORD(l)           ((unsigned short)(l))
#define HIWORD(l)           ((unsigned short)(((unsigned long)(l) >> 16) & 0xFFFF))

#define INLINE inline

#endif

#include "psemuxa.h"