This commit is contained in:
Kovid Goyal 2024-11-24 21:43:53 +05:30
commit a3a0684cf5
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
4 changed files with 9 additions and 2 deletions

View file

@ -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>

View file

@ -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"

View file

@ -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);
}

View file

@ -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"