/* -*-c++-*- */
/**
 * OsgAL - OpenSceneGraph Audio Library
 * Copyright (C) 2004 VRlab, Ume University
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
 */

#ifndef WINDOWSSTUFF_H_INCLUDED
#define WINDOWSSTUFF_H_INCLUDED
#ifndef WIN32
  
#include <unistd.h>

#else // WIN32

/* 
  Due to a lack of version numbering in OpenAL headers
  the macro OPENAL_VERSION was introduced to separate between
  different versions.
  This will make OpenAL++ compatible with numerous OpenAL versions.

*/
//#define OPENAL_VERSION 2004
//#define OPENAL_VERSION 2005
//#define OPENAL_VERSION 2006
#define OPENAL_VERSION 2007

//C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#pragma warning( disable : 4290 )
#include "openalpp/Export"

#include <windows.h>

inline void usleep( int x ) { Sleep( x /1000 ); };

#include <AL/alut.h>

#define alGetSourceiv alGetSourcei

#endif
#else
#endif
