diff --git a/ixwebsocket/IXWebSocketTransport.cpp b/ixwebsocket/IXWebSocketTransport.cpp index 29f55bc8..f4685d8a 100644 --- a/ixwebsocket/IXWebSocketTransport.cpp +++ b/ixwebsocket/IXWebSocketTransport.cpp @@ -51,15 +51,19 @@ #include -int greatestCommonDivisor (int a, int b) { - while (b != 0) - { - int t = b; - b = a % b; - a = t; - } +namespace +{ + int greatestCommonDivisor(int a, int b) + { + while (b != 0) + { + int t = b; + b = a % b; + a = t; + } - return a; + return a; + } } namespace ix