Refactor : excise unused macro defs

This commit is contained in:
Aaron Culliney 2015-06-07 11:52:28 -07:00
parent 7263e161e4
commit 8cba7de872
2 changed files with 2 additions and 29 deletions

View File

@ -192,7 +192,7 @@ static bool g_bMB_Active = false;
//static pthread_t mockingboard_thread = (pthread_t)-1;
static pthread_t g_hThread = 0;
#else
static HANDLE g_hThread = NULL;
static void *g_hThread = NULL;
#endif
static bool g_bMBAvailable = false;
@ -244,7 +244,7 @@ static pthread_mutex_t mockingboard_mutex = PTHREAD_MUTEX_INITIALIZER;
static uint8_t quit_event = false;
#else
static const int g_nNumEvents = 2;
static HANDLE g_hSSI263Event[g_nNumEvents] = {NULL}; // 1: Phoneme finished playing, 2: Exit thread
static void *g_hSSI263Event[g_nNumEvents] = {NULL}; // 1: Phoneme finished playing, 2: Exit thread
static unsigned long g_dwMaxPhonemeLen = 0;
#endif

View File

@ -26,7 +26,6 @@
// 2013/09/19 - http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx
typedef unsigned int UINT;
typedef char TCHAR;
typedef long *LPLONG;
typedef void *LPVOID;
@ -34,24 +33,6 @@ typedef void *LPDVOID;
typedef char *LPBYTE;
typedef unsigned long *LPDWORD;
typedef char *GUID; // HACK
typedef GUID IID;
#if !defined(__APPLE__)
typedef IID* REFIID;
#endif
typedef GUID *LPGUID;
typedef char *LPCSTR;
typedef LPCSTR LPCTSTR;
typedef unsigned int UINT_PTR;
typedef void *HWND; // HACK
typedef void* HANDLE;
#define VOID void
#if !defined(TRUE)
#define TRUE true
#endif
@ -59,19 +40,11 @@ typedef void* HANDLE;
#define FALSE false
#endif
#define _strdup strdup
#define _ASSERT assert
#define Sleep(x) usleep(x)
typedef void *IUnknown;
#define TEXT(X) X
#define MB_ICONEXCLAMATION 0x00000030L
#define MB_SETFOREGROUND 0x00010000L
#define MessageBox(window, message, group, flags) LOG("%s", message)
#define INFINITE 0
#define WAIT_OBJECT_0 0x00000000L