Skip to content

Commit

Permalink
(Github issue vinipsmaker#4) Added a workaround for naming clash with…
Browse files Browse the repository at this point in the history
… windows

headers
  • Loading branch information
tpatja committed Jun 11, 2013
1 parent cfc6539 commit 36c6c32
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 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 __WINERROR_WORKAROUND NO_ERROR
# undef NO_ERROR
#endif

class QSslError;

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

} // namespace Tufao

#if defined(__WINERROR_WORKAROUND)
# define NO_ERROR __WINERROR_WORKAROUND
#endif

#endif // TUFAO_WEBSOCKET_H

0 comments on commit 36c6c32

Please sign in to comment.