mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-27 19:31:46 +00:00
Merge branch 'fix-build' of https://github.com/krobelus/kitty
This commit is contained in:
commit
a3a0684cf5
4 changed files with 9 additions and 2 deletions
|
|
@ -7,8 +7,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifdef _POSIX_C_SOURCE
|
||||
#error "Must include \"data-types.h\" before any system headers"
|
||||
#endif
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
*/
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
|
||||
#include <libgen.h>
|
||||
#ifdef __APPLE__
|
||||
#include <mach-o/dyld.h>
|
||||
|
|
@ -18,7 +20,6 @@
|
|||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <wchar.h>
|
||||
#include <Python.h>
|
||||
#include <fcntl.h>
|
||||
#include "launcher.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
* Distributed under terms of the GPL3 license.
|
||||
*/
|
||||
|
||||
#include "../data-types.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
// Needed for _CS_DARWIN_USER_CACHE_DIR
|
||||
#define _DARWIN_C_SOURCE
|
||||
|
|
@ -347,4 +349,3 @@ single_instance_main(int argc, char *argv[], const CLIOptions *opts) {
|
|||
else fail_on_errno("Failed to bind single instance socket");
|
||||
} else set_single_instance_socket(s);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
if (PyModule_AddFunctions(module, module_methods) != 0) return false; \
|
||||
}
|
||||
|
||||
#include "data-types.h"
|
||||
#include "control-codes.h"
|
||||
#include "state.h"
|
||||
#include "iqsort.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue