From 2c2e47478a601776f2d8056ab3bcf248da9555e2 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Mon, 10 Dec 2012 14:17:00 -0600 Subject: [PATCH] Slightly more tidy on the regular example --- example/example.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/example/example.c b/example/example.c index 22bed24..00f5edc 100644 --- a/example/example.c +++ b/example/example.c @@ -36,12 +36,11 @@ #include /* for printf */ -#ifndef WIN32 - #include /* for usleep */ -#endif - #include "wiiuse.h" /* for wiimote_t, classic_ctrl_t, etc */ +#ifndef WIIUSE_WIN32 +#include /* for usleep */ +#endif #define MAX_WIIMOTES 4 @@ -451,11 +450,11 @@ int main(int argc, char** argv) { wiiuse_rumble(wiimotes[0], 1); wiiuse_rumble(wiimotes[1], 1); - #ifndef WIN32 - usleep(200000); - #else - Sleep(200); - #endif +#ifndef WIIUSE_WIN32 + usleep(200000); +#else + Sleep(200); +#endif wiiuse_rumble(wiimotes[0], 0); wiiuse_rumble(wiimotes[1], 0);