use '#pragma once' instead of #ifndef..#define..#endif guards

This commit is contained in:
Jordan Lee
2016-03-29 16:37:21 +00:00
parent 77b5105ea0
commit 1af60ad6ad
129 changed files with 149 additions and 417 deletions

View File

@@ -11,10 +11,9 @@
#error only libtransmission should #include this header.
#endif
#include "variant.h"
#pragma once
#ifndef TR_RPC_SERVER_H
#define TR_RPC_SERVER_H
#include "variant.h"
typedef struct tr_rpc_server tr_rpc_server;
@@ -65,4 +64,3 @@ bool tr_rpcIsPasswordEnabled (const tr_rpc_server * session);
const char* tr_rpcGetBindAddress (const tr_rpc_server * server);
#endif