Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
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
lvzhengyang
git2
Commits
b3384af2
Commit
b3384af2
authored
Feb 03, 2022
by
Peter Pettersson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C90: add inline macro to xdiff and mbedtls
parent
61f1e31a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
src/streams/mbedtls.c
+5
-3
src/xdiff/git-xdiff.h
+11
-0
No files found.
src/streams/mbedtls.c
View file @
b3384af2
...
@@ -23,12 +23,14 @@
...
@@ -23,12 +23,14 @@
#endif
#endif
/* Work around C90-conformance issues */
/* Work around C90-conformance issues */
#if defined(_MSC_VER)
#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
# if defined(_MSC_VER)
# define inline __inline
# define inline __inline
#elif defined(__GNUC__)
#
elif defined(__GNUC__)
# define inline __inline__
# define inline __inline__
#else
#
else
# define inline
# define inline
# endif
#endif
#endif
#include <mbedtls/config.h>
#include <mbedtls/config.h>
...
...
src/xdiff/git-xdiff.h
View file @
b3384af2
...
@@ -16,6 +16,17 @@
...
@@ -16,6 +16,17 @@
#include "regexp.h"
#include "regexp.h"
/* Work around C90-conformance issues */
#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
# if defined(_MSC_VER)
# define inline __inline
# elif defined(__GNUC__)
# define inline __inline__
# else
# define inline
# endif
#endif
#define xdl_malloc(x) git__malloc(x)
#define xdl_malloc(x) git__malloc(x)
#define xdl_free(ptr) git__free(ptr)
#define xdl_free(ptr) git__free(ptr)
#define xdl_realloc(ptr, x) git__realloc(ptr, x)
#define xdl_realloc(ptr, x) git__realloc(ptr, x)
...
...
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