Skip to content

Commit

Permalink
Winsock.h was included multiple times through windows.h causing compi…
Browse files Browse the repository at this point in the history
…le errors.
  • Loading branch information
antihax committed Dec 9, 2019
1 parent 31323fe commit d06db02
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion external/rtaudio/RtAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5494,7 +5494,6 @@ void RtApiWasapi::wasapiThread()
// Various revisions for RtAudio 4.0 by Gary Scavone, April 2007
// Changed device query structure for RtAudio 4.0.7, January 2010

#include <windows.h>
#include <process.h>
#include <mmsystem.h>
#include <mmreg.h>
Expand Down
2 changes: 2 additions & 0 deletions external/rtaudio/RtAudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,8 @@ class RTAUDIO_DLL_PUBLIC RtAudio
#ifndef NOMINMAX
#define NOMINMAX
#endif

#define _WINSOCKAPI_
#include <windows.h>
#include <process.h>
#include <stdint.h>
Expand Down
1 change: 1 addition & 0 deletions external/tinyxml/tinyxmlparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ distribution.
//#define DEBUG_PARSER
#if defined( DEBUG_PARSER )
# if defined( DEBUG ) && defined( _MSC_VER )
# define _WINSOCKAPI_
# include <windows.h>
# define TIXML_LOG OutputDebugString
# else
Expand Down
1 change: 1 addition & 0 deletions src/util/GLExt.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "wx/glcanvas.h"

#ifdef _WIN32
#define _WINSOCKAPI_
#include <windows.h>
#ifdef __MINGW32__
#include <gl/wglext.h>
Expand Down
4 changes: 0 additions & 4 deletions src/util/Timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

#include "Timer.h"

#ifdef _WIN32
#include <windows.h>
#endif

#include <iostream>

Timer::Timer(void) : time_elapsed(0), system_milliseconds(0), start_time(0), end_time(0), last_update(0), num_updates(0), paused_time(0), offset(0), paused_state(false), lock_state(false), lock_rate(0)
Expand Down
1 change: 1 addition & 0 deletions src/util/Timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#define TIMER_H

#ifdef WIN32
#define _WINSOCKAPI_
#include <windows.h>
#else
#include <sys/time.h>
Expand Down

0 comments on commit d06db02

Please sign in to comment.