Merge pull request #11386 from kosz78/fix-msvc-compile-errors
Fix MSVC compilation errors
This commit is contained in:
commit
ba4439c491
3 changed files with 4 additions and 4 deletions
|
@ -140,7 +140,7 @@ public:
|
|||
|
||||
virtual Error reopen(const String &p_path, int p_mode_flags); ///< does not change the AccessType
|
||||
|
||||
virtual Error _chmod(const String &p_path, int p_mod) {}
|
||||
virtual Error _chmod(const String &p_path, int p_mod) { return FAILED; }
|
||||
|
||||
static FileAccess *create(AccessType p_access); /// Create a file access (for the current platform) this is the only portable way of accessing files.
|
||||
static FileAccess *create_for_path(const String &p_path);
|
||||
|
|
|
@ -40,8 +40,8 @@
|
|||
const String init_symbol = "godot_gdnative_init";
|
||||
const String terminate_symbol = "godot_gdnative_terminate";
|
||||
|
||||
#define GDAPI_FUNC(name, ret_type, ...) .name = name,
|
||||
#define GDAPI_FUNC_VOID(name, ...) .name = name,
|
||||
#define GDAPI_FUNC(name, ret_type, ...) name,
|
||||
#define GDAPI_FUNC_VOID(name, ...) name,
|
||||
|
||||
const godot_gdnative_api_struct api_struct = {
|
||||
GODOT_GDNATIVE_API_FUNCTIONS
|
||||
|
|
|
@ -237,12 +237,12 @@ godot_variant GDAPI godot_method_bind_call(godot_method_bind *p_method_bind, god
|
|||
struct godot_gdnative_api_struct; // Forward declaration
|
||||
|
||||
typedef struct {
|
||||
const struct godot_gdnative_api_struct *api_struct;
|
||||
godot_bool in_editor;
|
||||
uint64_t core_api_hash;
|
||||
uint64_t editor_api_hash;
|
||||
uint64_t no_api_hash;
|
||||
godot_object *gd_native_library; // pointer to GDNativeLibrary that is being initialized
|
||||
const struct godot_gdnative_api_struct *api_struct;
|
||||
} godot_gdnative_init_options;
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Reference in a new issue