summaryrefslogtreecommitdiff
path: root/protocols/Xfire
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire')
-rw-r--r--protocols/Xfire/src/SHA1.cpp4
-rw-r--r--protocols/Xfire/src/SHA1.h15
2 files changed, 0 insertions, 19 deletions
diff --git a/protocols/Xfire/src/SHA1.cpp b/protocols/Xfire/src/SHA1.cpp
index 31267e43ef..36a3facb28 100644
--- a/protocols/Xfire/src/SHA1.cpp
+++ b/protocols/Xfire/src/SHA1.cpp
@@ -29,11 +29,7 @@
// Rotate x bits to the left
#ifndef ROL32
-#ifdef _MSC_VER
#define ROL32(_val32, _nBits) _rotl(_val32, _nBits)
-#else
-#define ROL32(_val32, _nBits) (((_val32)<<(_nBits))|((_val32)>>(32-(_nBits))))
-#endif
#endif
#ifdef SHA1_LITTLE_ENDIAN
diff --git a/protocols/Xfire/src/SHA1.h b/protocols/Xfire/src/SHA1.h
index b95a00970f..2bb15df86a 100644
--- a/protocols/Xfire/src/SHA1.h
+++ b/protocols/Xfire/src/SHA1.h
@@ -30,9 +30,7 @@
#include <string.h> // Needed for strcat and strcpy
#include <iostream>
-#ifdef _MSC_VER
#include <stdlib.h>
-#endif
// If you're compiling big endian, just comment out the following line
#define SHA1_LITTLE_ENDIAN
@@ -46,22 +44,9 @@
#ifndef UINT_32
-#ifdef _MSC_VER
-
#define UINT_8 unsigned __int8
#define UINT_32 unsigned __int32
-#else
-
-#define UINT_8 unsigned char
-
-#if (ULONG_MAX == 0xFFFFFFFF)
-#define UINT_32 unsigned long
-#else
-#define UINT_32 unsigned int
-#endif
-
-#endif
#endif