Made Ruby automatically include the libraries it needs, and stdwx.h declare WIN32_LEAN_AND_MEAN (which also required a new header inclusion on audio_player_dsoun.h)

Originally committed to SVN as r929.
This commit is contained in:
Rodrigo Braz Monteiro 2007-02-07 00:12:15 +00:00
parent 507de4c4cd
commit dc803725bf
3 changed files with 12 additions and 1 deletions

View File

@ -42,6 +42,7 @@
#include "setup.h"
#if USE_DIRECTSOUND == 1
#include "audio_player.h"
#include <mmsystem.h>
#include <dsound.h>

View File

@ -53,6 +53,15 @@
#include <assert.h>
#include <algorithm>
///////////////////
// Include library
#if __VISUALC__ >= 1200
#pragma comment(lib,"ws2_32.lib")
#pragma comment(lib,"msvcr80-ruby19-static.lib")
#endif
namespace Automation4 {
RubyObjects *RubyObjects::inst = NULL;

View File

@ -53,6 +53,7 @@
/////////
// Setup
#include "setup.h"
#define WIN32_LEAN_AND_MEAN
/////////////////////
@ -94,7 +95,7 @@
///////////////
// DirectSound
#if USE_DIRECTSOUND == 1
#include <dsound.h>
//#include <dsound.h>
#endif