A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/911de75fab12f653c94248980c9aa48a5a9d53f7 below:

[core] Fix name conflict with md5 functions (#2301) · Haivision/srt@911de75 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+15

-8

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+15

-8

lines changed Original file line number Diff line number Diff line change

@@ -54,6 +54,12 @@

54 54

#include "md5.h"

55 55

#include <string.h>

56 56 57 +

/*

58 +

* All symbols have been put under the srt namespace

59 +

* to avoid potential linkage conflicts.

60 +

*/

61 +

namespace srt {

62 + 57 63

#undef BYTE_ORDER /* 1 = big-endian, -1 = little-endian, 0 = unknown */

58 64

#ifdef ARCH_IS_BIG_ENDIAN

59 65

# define BYTE_ORDER (ARCH_IS_BIG_ENDIAN ? 1 : -1)

@@ -379,3 +385,5 @@ md5_finish(md5_state_t *pms, md5_byte_t digest[16])

379 385

for (i = 0; i < 16; ++i)

380 386

digest[i] = (md5_byte_t)(pms->abcd[i >> 2] >> ((i & 3) << 3));

381 387

}

388 + 389 +

} // namespace srt

Original file line number Diff line number Diff line change

@@ -50,6 +50,12 @@

50 50

#ifndef md5_INCLUDED

51 51

# define md5_INCLUDED

52 52 53 +

/*

54 +

* All symbols have been put under the srt namespace

55 +

* to avoid potential linkage conflicts.

56 +

*/

57 +

namespace srt {

58 + 53 59

/*

54 60

* This package supports both compile-time and run-time determination of CPU

55 61

* byte order. If ARCH_IS_BIG_ENDIAN is defined as 0, the code will be

@@ -70,11 +76,6 @@ typedef struct md5_state_s {

70 76

md5_byte_t buf[64]; /* accumulate block */

71 77

} md5_state_t;

72 78 73 -

#ifdef __cplusplus

74 -

extern "C"

75 -

{

76 -

#endif

77 - 78 79

/* Initialize the algorithm. */

79 80

void md5_init(md5_state_t *pms);

80 81

@@ -84,8 +85,6 @@ void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes);

84 85

/* Finish the message and return the digest. */

85 86

void md5_finish(md5_state_t *pms, md5_byte_t digest[16]);

86 87 87 -

#ifdef __cplusplus

88 -

} /* end extern "C" */

89 -

#endif

88 +

} // namespace srt

90 89 91 90

#endif /* md5_INCLUDED */

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4