]> granicus.if.org Git - transmission/commitdiff
Ensure include guard is the first non-comment line
authorMike Gelfand <mikedld@mikedld.com>
Tue, 14 Nov 2017 20:21:28 +0000 (23:21 +0300)
committerMike Gelfand <mikedld@mikedld.com>
Tue, 14 Nov 2017 20:21:28 +0000 (23:21 +0300)
47 files changed:
libtransmission/ConvertUTF.h
libtransmission/announcer-common.h
libtransmission/announcer-udp.c
libtransmission/announcer.h
libtransmission/bandwidth.h
libtransmission/bitfield.h
libtransmission/blocklist.h
libtransmission/cache.h
libtransmission/clients.h
libtransmission/completion.h
libtransmission/crypto.h
libtransmission/fdlimit.h
libtransmission/handshake.h
libtransmission/history.h
libtransmission/inout.h
libtransmission/json-test.c
libtransmission/list.h
libtransmission/magnet.h
libtransmission/metainfo.h
libtransmission/natpmp_local.h
libtransmission/net.h
libtransmission/peer-common.h
libtransmission/peer-io.h
libtransmission/peer-mgr.h
libtransmission/peer-msgs.h
libtransmission/platform-quota.h
libtransmission/platform.h
libtransmission/port-forwarding.h
libtransmission/ptrarray.h
libtransmission/resume.h
libtransmission/rpc-server.h
libtransmission/session.h
libtransmission/stats.h
libtransmission/torrent-magnet.h
libtransmission/torrent.h
libtransmission/tr-dht.h
libtransmission/tr-lpd.h
libtransmission/tr-utp.h
libtransmission/trevent.h
libtransmission/upnp.h
libtransmission/variant-benc.c
libtransmission/variant-common.h
libtransmission/variant-json.c
libtransmission/variant-test.c
libtransmission/variant.c
libtransmission/verify.h
libtransmission/webseed.h

index 62e717659912f7e95988e7e3caffe2c95aa7aff7..c73b727968669bc8b5342f48b48189114ae6abd4 100644 (file)
@@ -1,14 +1,14 @@
+#pragma once
+
 #ifndef __TRANSMISSION__
  #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 /*
  * Copyright 2001-2004 Unicode, Inc.
- * 
+ *
  * Disclaimer
- * 
+ *
  * This source code is provided as is by Unicode, Inc. No claims are
  * made as to fitness for any particular purpose. No warranties of any
  * kind are expressed or implied. The recipient agrees to determine
@@ -16,9 +16,9 @@
  * purchased on magnetic or optical media from Unicode, Inc., the
  * sole remedy for any claim will be exchange of defective media
  * within 90 days of receipt.
- * 
+ *
  * Limitations on Rights to Redistribute This Code
- * 
+ *
  * Unicode, Inc. hereby grants the right to freely use the information
  * supplied in this file in the creation of products supporting the
  * Unicode Standard, and to make copies of this file in any form
@@ -39,7 +39,7 @@
 
     Each routine converts the text between *sourceStart and sourceEnd,
     putting the result into the buffer between *targetStart and
-    targetEnd. Note: the end pointers are *after* the last item: e.g. 
+    targetEnd. Note: the end pointers are *after* the last item: e.g.
     * (sourceEnd - 1) is the last item.
 
     The return result indicates whether the conversion was successful,
@@ -77,7 +77,7 @@
        sequence is malformed. When "sourceIllegal" is returned, the source
        value will point to the illegal value that caused the problem. E.g.,
        in UTF-8 when a sequence is malformed, it points to the start of the
-       malformed sequence. 
+       malformed sequence.
 
     Author: Mark E. Davis, 1994.
     Rev History: Rick McGowan, fixes & updates May 2001.
@@ -123,27 +123,27 @@ extern "C" {
 #endif
 
 ConversionResult ConvertUTF8toUTF16 (
-               const UTF8** sourceStart, const UTF8* sourceEnd, 
+               const UTF8** sourceStart, const UTF8* sourceEnd,
                UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
 
 ConversionResult ConvertUTF16toUTF8 (
-               const UTF16** sourceStart, const UTF16* sourceEnd, 
+               const UTF16** sourceStart, const UTF16* sourceEnd,
                UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
-               
+
 ConversionResult ConvertUTF8toUTF32 (
-               const UTF8** sourceStart, const UTF8* sourceEnd, 
+               const UTF8** sourceStart, const UTF8* sourceEnd,
                UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags);
 
 ConversionResult ConvertUTF32toUTF8 (
-               const UTF32** sourceStart, const UTF32* sourceEnd, 
+               const UTF32** sourceStart, const UTF32* sourceEnd,
                UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
-               
+
 ConversionResult ConvertUTF16toUTF32 (
-               const UTF16** sourceStart, const UTF16* sourceEnd, 
+               const UTF16** sourceStart, const UTF16* sourceEnd,
                UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags);
 
 ConversionResult ConvertUTF32toUTF16 (
-               const UTF32** sourceStart, const UTF32* sourceEnd, 
+               const UTF32** sourceStart, const UTF32* sourceEnd,
                UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
 
 Boolean isLegalUTF8Sequence (const UTF8 *source, const UTF8 *sourceEnd);
index cf62ce745e30d1d02a5d51a2b5e7ff4e8be08b47..03562adbeac6cc7a88ef33a2d0ae4a89564e0264 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __LIBTRANSMISSION_ANNOUNCER_MODULE__
 #error only the libtransmission announcer module should #include this header.
 #endif
 
-#pragma once
-
 #include "transmission.h" /* SHA_DIGEST_LENGTH */
 #include "session.h" /* PEER_ID_LEN */
 
index 4b905bdda707dd397148e6571ff1adc5c12e441f..c70a44f04bf8af970310dfbe0f25717c53d336d5 100644 (file)
@@ -6,8 +6,6 @@
  *
  */
 
-#define __LIBTRANSMISSION_ANNOUNCER_MODULE__
-
 #include <errno.h> /* errno, EAFNOSUPPORT */
 #include <string.h> /* memcpy(), memset() */
 
@@ -15,6 +13,8 @@
 #include <event2/dns.h>
 #include <event2/util.h>
 
+#define __LIBTRANSMISSION_ANNOUNCER_MODULE__
+
 #include "transmission.h"
 #include "announcer.h"
 #include "announcer-common.h"
index 1b94eb2d691086c06422507a953d398cd20c685f..4df8056639674d2125d44c65c9a4efcd6b03e98f 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include "transmission.h"
 
 struct tr_announcer;
index 9a9e34f472f958f52dac385e7f1dc9f7cb4e8d2c..db1e4e1bed53c575aa99f8623fb89a60a5ac3c56 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include "transmission.h"
 #include "ptrarray.h"
 #include "tr-assert.h"
index 08fdd00cfa0dbd0893a8130452a823fa093661f9..0c56d24e3efc4e7c4488e2ab17b4be45a6032054 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include "transmission.h"
 
 /** @brief Implementation of the BitTorrent spec's Bitfield array of bits */
index 8c547b10447e2cb1c8d0ec3fb7e7864a843b2dbb..1a69c4cef353930638b2fb91e5828869adb1c413 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 struct tr_address;
 
 typedef struct tr_blocklistFile tr_blocklistFile;
index fe900bdc58340ed008bfb7ad9de44f9f922c337c..7cceedcb9242e991623ac106a01121b3ee9d2299 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 struct evbuffer;
 
 typedef struct tr_cache tr_cache;
index 65d3c6c29c4e137211cf6149a30fa1c301d0edcc..ef85a7486a6ae7c9641a400ca7eb09aa4dfd27f6 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 /**
  * @brief parse a peer-id into a human-readable client name and version number
  * @ingroup utils
index f72885867111614c01558a478d78be849706cf53..b167292ed0663ea18457de4c9a899bb251446174 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include "transmission.h"
 #include "bitfield.h"
 #include "utils.h" /* tr_getRatio() */
index d2d833c7d5999e93ba7ca28e08155f70514767d6..7e6c85d427455ca6704a5bc973f09e982cad5099 100644 (file)
@@ -6,13 +6,13 @@
  *
  */
 
+#ifndef TR_ENCRYPTION_H
+#define TR_ENCRYPTION_H
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#ifndef TR_ENCRYPTION_H
-#define TR_ENCRYPTION_H
-
 #include <inttypes.h>
 
 #include "crypto-utils.h"
index caa15b31fab87d95d69b8e8ac0262a0e201a536a..ab3a4503fa90a6436c0b2184dd5c5358988c5f45 100644 (file)
@@ -6,6 +6,8 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
index 71922dc72c7cf6a1ce11b98154c23ac27d48650d..593e3c4897717782f7ff03e3975dc026436f4a08 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include "transmission.h"
 #include "net.h"
 
index 5a66bd47d89f1147976226863f5b67fe89b4d136..e2b898dd030ae18559ad17737f1a853918c98413 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 /**
  * A generic short-term memory object that remembers how many times
  * something happened over the last N seconds.
index 3271412f3d7d34fed38ae6e708e8c3f3e848992a..616191ae8923fe7c0944f323efdc5388203897c5 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 struct tr_torrent;
 
 /**
index a8cc4cc9fbc617f6b470f0ccd824fc8ae64c6e18..9652e9cc3fcce48cb2d47fb57039ccecca66571b 100644 (file)
@@ -11,6 +11,7 @@
 #include <locale.h> /* setlocale() */
 
 #define __LIBTRANSMISSION_VARIANT_MODULE__
+
 #include "transmission.h"
 #include "utils.h" /* tr_free */
 #include "variant.h"
index b671941e94b340ed52b45bfac5054331adbf78ac..665f29e795d57028ac22b33a0513da07115365a8 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 /**
  * @addtogroup utils Utilities
  * @{
index 5e2960d8f98728b5ce6dbe7cf1cff057af4fd8f2..df5393304f8b4a4e1796b7e33593d26f48bee773 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include "transmission.h"
 #include "variant.h"
 
index 375453704153a5898152e410e79deef0a27f0261..ee00df57ab730ecc6469d0f21ef4593d1dd5a754 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include "transmission.h"
 #include "variant.h"
 
index af5564b5d7141233a2b8db4c77d6485cabfcce51..4f5a557511b9993b80943f47b1e556855d3f63ac 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 /**
  * @addtogroup port_forwarding Port Forwarding
  * @{
index 82577a04eef7ecf7dff4a7b6c317852a5af4161f..66b3449e715e96a795cfebc196f8e78e7af9ef8c 100644 (file)
  * DEALINGS IN THE SOFTWARE.
  *****************************************************************************/
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #ifdef _WIN32
 #include <inttypes.h>
 #include <ws2tcpip.h>
index a7c8fe93cf5fb233608e43ec8d467b00edf5055c..59fefe590fa8c949fc64a5a8c6bb291c4a382de1 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include "transmission.h"
 #include "bitfield.h"
 #include "history.h"
index 4716331289312af75ecd48e126440e60ee6006bc..0749e9b681c6413f754f3b96d5bdbed56b719fa0 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 /**
 ***
 **/
index 8f0c53c0235de0b7d5630c0deb356fb04b1fc76a..5191e966de3127254f7847c20dae2ef83d7ab1b2 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include <inttypes.h> /* uint16_t */
 
 #ifdef _WIN32
index d44fd38d76e1bc2cfb9a122f1032a3867bc47dc9..f5d1a3880a798a25b32407b28807e5c3a2c1914d 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include <inttypes.h>
 #include "peer-common.h"
 
index 1eb7d3b1c287ec70663e4f921407d7ff4edbd546..83597c37978aa6bba7961651f93fef219793869c 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 /**
  * @addtogroup tr_session Session
  * @{
index 802b76a222671c4b7de751f68fc477283ec6e018..4cffc5e52a3682f80d0b4e6476b479f398b05e31 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #define TR_PATH_DELIMITER '/'
 #define TR_PATH_DELIMITER_STR "/"
 
index 9381b80d684840b9da194b8c944f7d4af1b3783b..6aef55dff4e8c2e488793b9775d159458b7963fc 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include "transmission.h"
 
 /**
index de76d38516262a4fa0af570aacce6a00a9e01c62..5b0c5d5c79f38025ec992a4cd1af94e50e15ed72 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include "transmission.h"
 #include "tr-assert.h"
 
index 64e97736cf5471b11d3036ca6b57433a52426f6c..ea4e48cc59b3631af647e2d19855f0ae019a6da2 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 enum
 {
     TR_FR_DOWNLOADED = (1 << 0),
index cacaed1bc115dd80fcd938608032a968eaf9221e..46e8a871f90253b29c01241f80165ff328edb306 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include "variant.h"
 
 typedef struct tr_rpc_server tr_rpc_server;
index 9499507f9842f2210fecdf72e06c0604c89e0f07..4ccf7fe46ec57f5419ff9988ba34f2592af2c56d 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #define TR_NAME "Transmission"
 
 #include "bandwidth.h"
index 1c2c05451c666667cabe06049082d6608f92acbd..298250a4d1fff0c5ecdcec7a78a05b7a9365fc2f 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 extern struct tr_session_stats const TR_SESSION_STATS_INIT;
 
 void tr_statsInit(tr_session* session);
index ef1e84d2608bccf4083c40ee966a546aa51a0c75..0d63e5ed787fd22a04b2b6ad47d86b0b464d50cf 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include <inttypes.h>
 #include <time.h>
 
index 52c2efcf1f717c6f090b7d28ebc3363c38597e80..5220192920d5f13c9e5371336d429231bad6e013 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 #include "bandwidth.h" /* tr_bandwidth */
 #include "completion.h" /* tr_completion */
 #include "session.h" /* tr_sessionLock(), tr_sessionUnlock() */
index 2eef43bbd48a2993f847cfd7ac283c94c825b1d2..5c8c4b4dc5f6bec7175c01615b380eae6515342f 100644 (file)
@@ -22,6 +22,8 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
index e4192a3ecde7cdd04b82ae1beb7d294ef780fd67..e93e612a97e246f5f173c6442c824c3e55ac4f77 100644 (file)
@@ -20,12 +20,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 int tr_lpdInit(tr_session*, tr_address*);
 void tr_lpdUninit(tr_session*);
 bool tr_lpdEnabled(tr_session const*);
index 4aae573c5add00b8f6d1951def36526162ba19b2..9e07c86bb494f377656b4902359e47448a8d64e5 100644 (file)
@@ -21,12 +21,12 @@ THE SOFTWARE.
 
 */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 int tr_utpPacket(unsigned char const* buf, size_t buflen, struct sockaddr const* from, socklen_t fromlen, tr_session* ss);
 
 void tr_utpClose(tr_session*);
index cd28db81192a2b4681f1aa154ee022a78864ecef..bf11ad17183123b3d7730b2379b43a0c4ac08932 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 /**
 **/
 
index ace7f1de86d6f6b352fe17005a306f00b2511c0b..f5dcf6a42a3a7cf00d13418b9931ad06d0267916 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 /**
  * @addtogroup port_forwarding Port Forwarding
  * @{
index cb1c7fbef60d39610613206ec0eff41336d5fcf2..9a7faf7d910258360a5d3fd2c5a69128ac580423 100644 (file)
@@ -16,6 +16,7 @@
 #include "ConvertUTF.h"
 
 #define __LIBTRANSMISSION_VARIANT_MODULE__
+
 #include "transmission.h"
 #include "ptrarray.h"
 #include "utils.h" /* tr_snprintf() */
index ff5aff8edc4ea814396e8155e88492d4ef420ef5..8e10634d1f95ccddb1f6b1d9160714225972cb23 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __LIBTRANSMISSION_VARIANT_MODULE__
 #error only libtransmission/variant-*.c should #include this header.
 #endif
 
-#pragma once
-
 typedef void (* VariantWalkFunc)(tr_variant const* val, void* user_data);
 
 struct VariantWalkFuncs
index 22cb616e96a1a3ce077e47b6bd71c1f84a03b417..9e62668e77afbea8b4143c0ebc4c011de434d6f4 100644 (file)
@@ -20,6 +20,7 @@
 #include "jsonsl.c"
 
 #define __LIBTRANSMISSION_VARIANT_MODULE__
+
 #include "transmission.h"
 #include "ConvertUTF.h"
 #include "list.h"
index c42606241394d03da835f8f56cb825882e27f373..b734444ec2c9df76536913fabb10f0f0dfc432d9 100644 (file)
@@ -13,6 +13,7 @@
 #include <event2/buffer.h>
 
 #define __LIBTRANSMISSION_VARIANT_MODULE__
+
 #include "transmission.h"
 #include "utils.h" /* tr_free */
 #include "variant.h"
index b45e2458c072a0f36c97e398bde9f4748e15db6a..628cd8cd4bdad49a0e51ca8df26dc4180b9210c9 100644 (file)
@@ -32,6 +32,7 @@
 #include <event2/buffer.h>
 
 #define __LIBTRANSMISSION_VARIANT_MODULE__
+
 #include "transmission.h"
 #include "ConvertUTF.h"
 #include "error.h"
index edcd28b2972cec0923275521a0642cdf6d27966d..e6abde3864670d3f9d7feba4bc271b1e9bb7342f 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 /**
  * @addtogroup file_io File IO
  * @{
index 82b986b6310f6f171d13ad836d899a4992797e99..7be5cecda1977283f36acf8c13b69609ba45644a 100644 (file)
@@ -6,12 +6,12 @@
  *
  */
 
+#pragma once
+
 #ifndef __TRANSMISSION__
 #error only libtransmission should #include this header.
 #endif
 
-#pragma once
-
 typedef struct tr_webseed tr_webseed;
 
 #include "peer-common.h"