improved platform definitions and definition checks

This commit is contained in:
Ryan Pavlik
2011-05-02 10:32:26 -05:00
parent 51674ce9de
commit 6c7fb6f12f
15 changed files with 82 additions and 53 deletions

View File

@@ -31,10 +31,10 @@
* @brief Handles device I/O for Windows.
*/
#ifdef WIN32
#include "io.h"
#ifdef WIIUSE_WIN32
#include <stdlib.h>
#include <hidsdi.h>
@@ -241,4 +241,4 @@ int wiiuse_io_write(struct wiimote_t* wm, byte* buf, int len) {
return 0;
}
#endif /* ifdef WIN32 */
#endif /* ifdef WIIUSE_WIN32 */