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:
parent
c1abfe87c8
commit
7cd2d10d00
|
@ -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 */
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "transmission.h"
|
||||
#include "crypto.h"
|
||||
#include "crypto-utils.h"
|
||||
|
||||
#include "libtransmission-test.h"
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue