crypto.h and crypto-utils.h can't use #pragma once, it breaks our name munging in crypto-test-ref.h

This commit is contained in:
Jordan Lee 2016-03-29 19:02:26 +00:00
parent c1abfe87c8
commit 7cd2d10d00
4 changed files with 11 additions and 6 deletions

View File

@ -7,7 +7,8 @@
* $Id$
*/
#pragma once
#ifndef TR_CRYPTO_TEST_REF_H
#define TR_CRYPTO_TEST_REF_H
/* #define CRYPTO_REFERENCE_CHECK */
@ -168,8 +169,6 @@
#define tr_sha1_to_hex_ tr_sha1_to_hex
#define tr_hex_to_sha1_ tr_hex_to_sha1
#include "crypto.h"
#include "crypto-utils.h"
#endif /* CRYPTO_REFERENCE_CHECK */
#endif /* TR_CRYPTO_TEST_REF_H */

View File

@ -10,6 +10,8 @@
#include <string.h>
#include "transmission.h"
#include "crypto.h"
#include "crypto-utils.h"
#include "libtransmission-test.h"

View File

@ -7,7 +7,8 @@
* $Id$
*/
#pragma once
#ifndef TR_CRYPTO_UTILS_H
#define TR_CRYPTO_UTILS_H
#include <inttypes.h>
#include <stddef.h>
@ -221,3 +222,4 @@ tr_hex_to_sha1 (uint8_t * sha1,
}
#endif
#endif /* TR_CRYPTO_UTILS_H */

View File

@ -11,7 +11,8 @@
#error only libtransmission should #include this header.
#endif
#pragma once
#ifndef TR_ENCRYPTION_H
#define TR_ENCRYPTION_H
#include <inttypes.h>
@ -84,3 +85,4 @@ bool tr_cryptoSecretKeySha1 (const tr_crypto * crypto,
/* @} */
#endif