Permalink
Browse files

SHA256.cpp: Include some ZNC header first

This is required to make sure that zncconfig.h is the very first header that is
being included.

This problem was noticed by someone reporting some "macro redefined" warnings.

Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information...
1 parent dd57c35 commit 6e558bbec0f4c823467b6d7f364963d4efeb329b @psychon psychon committed Sep 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 SHA256.cpp
View
4 SHA256.cpp
@@ -31,10 +31,10 @@
* SUCH DAMAGE.
*/
-#include <string.h>
-
#include "SHA256.h"
+#include <string.h>
+
#define SHFR(x, n) (x >> n)
#define ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n)))
#define ROTL(x, n) ((x << n) | (x >> ((sizeof(x) << 3) - n)))

0 comments on commit 6e558bb

Please sign in to comment.