Skip to content

Commit

Permalink
Fixes to network refactoring (OpenRCT2#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
janisozaur authored and Goddesen committed Jun 1, 2016
1 parent 5cb81e8 commit b54e32e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
20 changes: 11 additions & 9 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
#endif

#ifdef PLATFORM_X86
#ifdef __GNUC__
#define FASTCALL __attribute__((fastcall))
#elif _MSC_VER
#define FASTCALL __fastcall
#else
#pragma message "Not using fastcall calling convention, please check your compiler support"
#define FASTCALL
#endif
#ifndef FASTCALL
#ifdef __GNUC__
#define FASTCALL __attribute__((fastcall))
#elif _MSC_VER
#define FASTCALL __fastcall
#else
#pragma message "Not using fastcall calling convention, please check your compiler support"
#define FASTCALL
#endif
#endif // FASTCALL
#else // PLATFORM_X86
#define FASTCALL
#define FASTCALL
#endif // PLATFORM_X86

#endif
1 change: 1 addition & 0 deletions src/network/NetworkAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#pragma once

#include <vector>
#include <string>
#include "../common.h"

class NetworkAction
Expand Down
2 changes: 1 addition & 1 deletion src/network/NetworkAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#pragma endregion

#include <string>
#include <sdl/SDL_thread.h>
#include <SDL_thread.h>
#include "NetworkAddress.h"

NetworkAddress::NetworkAddress()
Expand Down
2 changes: 1 addition & 1 deletion src/network/NetworkAddress.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#pragma once

#include <memory>
#include <sdl/SDL_mutex.h>
#include <SDL_mutex.h>
#include "NetworkTypes.h"
#include "../common.h"

Expand Down

0 comments on commit b54e32e

Please sign in to comment.