diff --git a/ixwebsocket/IXWebSocketTransport.cpp b/ixwebsocket/IXWebSocketTransport.cpp index a8853a90..bb3c083e 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