mirror of
https://github.com/git/git.git
synced 2026-01-20 22:07:19 +09:00
Merge branch 'jk/avoid-redef-system-functions-2.30' into jk/avoid-redef-system-functions
* jk/avoid-redef-system-functions-2.30: git-compat-util: undefine system names before redeclaring them
This commit is contained in:
commit
395bec6b39
@ -346,6 +346,7 @@ static inline int git_setitimer(int which UNUSED,
|
||||
struct itimerval *newvalue UNUSED) {
|
||||
return 0; /* pretend success */
|
||||
}
|
||||
#undef setitimer
|
||||
#define setitimer(which,value,ovalue) git_setitimer(which,value,ovalue)
|
||||
#endif
|
||||
|
||||
@ -1480,6 +1481,9 @@ static inline void git_funlockfile(FILE *fh UNUSED)
|
||||
{
|
||||
; /* nothing */
|
||||
}
|
||||
#undef flockfile
|
||||
#undef funlockfile
|
||||
#undef getc_unlocked
|
||||
#define flockfile(fh) git_flockfile(fh)
|
||||
#define funlockfile(fh) git_funlockfile(fh)
|
||||
#define getc_unlocked(fh) getc(fh)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user