Skip to content

Commit cf602c9

Browse files
authored
Merge pull request #795 from pabuhler/config-h-include
be consistent with config.h include
2 parents 49e0c07 + 222b83d commit cf602c9

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

include/srtp_priv.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
#define SRTP_PRIV_H
4747

4848
// Leave this as the top level import. Ensures the existence of defines
49-
#include "config.h"
49+
#ifdef HAVE_CONFIG_H
50+
#include <config.h>
51+
#endif
5052

5153
#include "srtp.h"
5254
#include "rdbx.h"

srtp/srtp.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
*
4343
*/
4444

45-
// Leave this as the top level import. Ensures the existence of defines
46-
#include "config.h"
47-
4845
#include "srtp_priv.h"
4946
#include "stream_list_priv.h"
5047
#include "crypto_types.h"

test/rtp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@
5353
#ifndef SRTP_RTP_H
5454
#define SRTP_RTP_H
5555

56+
#include "srtp_priv.h"
57+
5658
#ifdef HAVE_NETINET_IN_H
5759
#include <netinet/in.h>
5860
#elif defined HAVE_WINSOCK2_H
5961
#include <winsock2.h>
6062
#endif
6163

62-
#include "srtp_priv.h"
63-
6464
#ifdef __cplusplus
6565
extern "C" {
6666
#endif

test/util.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242
*
4343
*/
4444

45-
#include "config.h"
45+
#ifdef HAVE_CONFIG_H
46+
#include <config.h>
47+
#endif
48+
4649
#include "util.h"
4750

4851
#include <string.h>

0 commit comments

Comments
 (0)