mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-29 22:49:20 -05:00
Merge pull request #2149 from dscho/gcc-8-gfw
Make Git for Windows compile with GCC 8.x
This commit is contained in:
@@ -149,7 +149,7 @@ win32_compute_revents (HANDLE h, int *p_sought)
|
||||
case FILE_TYPE_PIPE:
|
||||
if (!once_only)
|
||||
{
|
||||
NtQueryInformationFile = (PNtQueryInformationFile)
|
||||
NtQueryInformationFile = (PNtQueryInformationFile)(void (*)(void))
|
||||
GetProcAddress (GetModuleHandleA ("ntdll.dll"),
|
||||
"NtQueryInformationFile");
|
||||
once_only = TRUE;
|
||||
|
||||
8
kwset.c
8
kwset.c
@@ -38,7 +38,13 @@
|
||||
#include "compat/obstack.h"
|
||||
|
||||
#define NCHAR (UCHAR_MAX + 1)
|
||||
#define obstack_chunk_alloc xmalloc
|
||||
/* adapter for `xmalloc()`, which takes `size_t`, not `long` */
|
||||
static void *obstack_chunk_alloc(long size)
|
||||
{
|
||||
if (size < 0)
|
||||
BUG("Cannot allocate a negative amount: %ld", size);
|
||||
return xmalloc(size);
|
||||
}
|
||||
#define obstack_chunk_free free
|
||||
|
||||
#define U(c) ((unsigned char) (c))
|
||||
|
||||
Reference in New Issue
Block a user