Skip to content

Commit

Permalink
Prevent macro redefinitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghislain MARY committed Jun 6, 2016
1 parent 1f1acfb commit 7612f40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/ortp/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,12 @@ const char * ortp_strerror(DWORD value);
#endif

ORTP_PUBLIC const char *getWinSocketError(int error);
#ifndef getSocketErrorCode
#define getSocketErrorCode() WSAGetLastError()
#endif
#ifndef getSocketError
#define getSocketError() getWinSocketError(WSAGetLastError())
#endif

#define snprintf _snprintf
#define strcasecmp _stricmp
Expand Down

0 comments on commit 7612f40

Please sign in to comment.