Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 6e558bbec0f4c823467b6d7f364963d4efeb329b 1 parent dd57c35
@psychon psychon authored
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)))
Please sign in to comment.
Something went wrong with that request. Please try again.