Skip to content

Commit

Permalink
(Github issue vinipsmaker#4) Added workaround for naming clash with w…
Browse files Browse the repository at this point in the history
…inerror.h
  • Loading branch information
tpatja committed Jun 11, 2013
1 parent cfc6539 commit 21d5d45
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/websocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@

#include <QtNetwork/QAbstractSocket>

#if defined(NO_ERROR) && defined(_WIN32)
# define TUFAO_WINERROR_WORKAROUND
# undef NO_ERROR
#endif

class QSslError;

namespace Tufao {
Expand Down Expand Up @@ -501,4 +506,9 @@ private slots:

} // namespace Tufao

#if defined(TUFAO_WINERROR_WORKAROUND)
# define NO_ERROR 0L
# undef TUFAO_WINERROR_WORKAROUND
#endif

#endif // TUFAO_WEBSOCKET_H

0 comments on commit 21d5d45

Please sign in to comment.