Skip to content

Commit

Permalink
SHA256.cpp: Include some ZNC header first
Browse files Browse the repository at this point in the history
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
psychon committed Sep 22, 2011
1 parent 08cc624 commit 4d4e6a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SHA256.cpp
Expand Up @@ -31,10 +31,10 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */


#include <string.h>

#include "SHA256.h" #include "SHA256.h"


#include <string.h>

#define SHFR(x, n) (x >> n) #define SHFR(x, n) (x >> n)
#define ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n))) #define ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n)))
#define ROTL(x, n) ((x << n) | (x >> ((sizeof(x) << 3) - n))) #define ROTL(x, n) ((x << n) | (x >> ((sizeof(x) << 3) - n)))
Expand Down

0 comments on commit 4d4e6a6

Please sign in to comment.