[FFmpeg-cvslog] network.h: Add #endif comments to improve readability
Diego Biurrun
git at videolan.org
Tue Jan 7 13:21:26 CET 2014
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Jan 6 11:26:20 2014 +0100| [9997cee04d6adfa301e2495428c4d664fa4ad0ad] | committer: Diego Biurrun
network.h: Add #endif comments to improve readability
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9997cee04d6adfa301e2495428c4d664fa4ad0ad
---
libavformat/network.h | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/libavformat/network.h b/libavformat/network.h
index 1d3fb7b..9d8c92f 100644
--- a/libavformat/network.h
+++ b/libavformat/network.h
@@ -61,7 +61,7 @@ int ff_neterrno(void);
#include <netdb.h>
#define ff_neterrno() AVERROR(errno)
-#endif
+#endif /* HAVE_WINSOCK2_H */
#if HAVE_ARPA_INET_H
#include <arpa/inet.h>
@@ -91,12 +91,12 @@ struct sockaddr_storage {
uint8_t ss_family;
#else
uint16_t ss_family;
-#endif
+#endif /* HAVE_STRUCT_SOCKADDR_SA_LEN */
char ss_pad1[6];
int64_t ss_align;
char ss_pad2[112];
};
-#endif
+#endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */
#if !HAVE_STRUCT_ADDRINFO
struct addrinfo {
@@ -109,7 +109,7 @@ struct addrinfo {
char *ai_canonname;
struct addrinfo *ai_next;
};
-#endif
+#endif /* !HAVE_STRUCT_ADDRINFO */
/* getaddrinfo constants */
#ifndef EAI_AGAIN
@@ -182,12 +182,13 @@ int ff_getnameinfo(const struct sockaddr *sa, int salen,
#define getaddrinfo ff_getaddrinfo
#define freeaddrinfo ff_freeaddrinfo
#define getnameinfo ff_getnameinfo
-#endif
+#endif /* !HAVE_GETADDRINFO */
+
#if !HAVE_GETADDRINFO || HAVE_WINSOCK2_H
const char *ff_gai_strerror(int ecode);
#undef gai_strerror
#define gai_strerror ff_gai_strerror
-#endif
+#endif /* !HAVE_GETADDRINFO || HAVE_WINSOCK2_H */
#ifndef INADDR_LOOPBACK
#define INADDR_LOOPBACK 0x7f000001
More information about the ffmpeg-cvslog
mailing list