]> granicus.if.org Git - transmission/commitdiff
(libT) add the #include guards to "private" third party header files.
authorCharles Kerr <charles@transmissionbt.com>
Sun, 30 Nov 2008 01:43:18 +0000 (01:43 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Sun, 30 Nov 2008 01:43:18 +0000 (01:43 +0000)
libtransmission/ConvertUTF.h
libtransmission/JSON_parser.h
libtransmission/ggets.h

index ee1594915d0018de70e353537d965ef5875340f5..73086bd722c2a485b10abfd33501699c22a6eb6d 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef CONVERT_UNICODE_H
 #define CONVERT_UNICODE_H
 
+#ifndef __TRANSMISSION__
+#error only libtransmission should #include this header.
+#endif
+
 /*
  * Copyright 2001-2004 Unicode, Inc.
  *
index c8d96e1c46f8056ef0aab7b26bc62563b9e7748a..37ce5dce59a3900c781a4643922a0a49011ed5f0 100644 (file)
@@ -1,3 +1,7 @@
+#ifndef __TRANSMISSION__
+#error only libtransmission should #include this header.
+#endif
+
 #ifndef JSON_PARSER_H
 #define JSON_PARSER_H
 
index 728ccb4890b9db1293a34aa1b0f7072672bc5e82..6a162ebc1d369999fb52a1537ea13664dd54daa1 100644 (file)
@@ -1,3 +1,8 @@
+#ifndef __TRANSMISSION__
+#error only libtransmission should #include this header.
+#endif
+
+
 /* File ggets.h  - goodgets is a safe alternative to gets */
 /* By C.B. Falconer.  Public domain 2002-06-22            */
 /*    attribution appreciated.                            */