Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
9997cee0
Commit
9997cee0
authored
Jan 06, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network.h: Add #endif comments to improve readability
parent
794fcf79
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
network.h
libavformat/network.h
+7
-6
No files found.
libavformat/network.h
View file @
9997cee0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment