mirror of
https://github.com/Ed94/metadesk.git
synced 2026-06-12 23:51:37 -07:00
more compile fixes
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#endif
|
||||
|
||||
// C++ namespace support
|
||||
#if defined(MD_DONT_USE_NAMESPACE) || LANG_C
|
||||
#if defined(MD_DONT_USE_NAMESPACE) || MD_LANG_C
|
||||
# if LANG_C
|
||||
# define MD_NS
|
||||
# define MD_NS_BEGIN
|
||||
|
||||
+2
-2
@@ -25,9 +25,9 @@ MD_NS_BEGIN
|
||||
#include "base/entry_point.c"
|
||||
#include "base/time.c"
|
||||
|
||||
#if OS_WINDOWS
|
||||
#if MD_OS_WINDOWS
|
||||
# include "os/win32/os_win32.c"
|
||||
#elif OS_LINUX
|
||||
#elif MD_OS_LINUX
|
||||
# include "os/win32/os_win32.c"
|
||||
#endif
|
||||
|
||||
|
||||
+5
-5
@@ -208,7 +208,7 @@ md_force_inline MD_String8List md_os_string_list_from_argcv__arena(MD_Arena* are
|
||||
|
||||
//- rjf: files
|
||||
MD_API MD_OS_Handle md_os_file_open (MD_OS_AccessFlags flags, MD_String8 path);
|
||||
MD_API void md_os_file_close (MD_OS_Handle file);
|
||||
MD_API void md_os_file_close (MD_OS_Handle file);
|
||||
MD_API MD_U64 md_os_file_read (MD_OS_Handle file, MD_Rng1U64 rng, void *out_data);
|
||||
MD_API MD_U64 md_os_file_write (MD_OS_Handle file, MD_Rng1U64 rng, void *data);
|
||||
MD_API MD_B32 md_os_file_set_times (MD_OS_Handle file, MD_DateTime time);
|
||||
@@ -227,10 +227,10 @@ md_force_inline MD_String8 md_os_full_path_from_path__arena(MD_Arena* arena, MD_
|
||||
|
||||
//- rjf: file maps
|
||||
MD_API MD_OS_Handle md_os_file_map_open (MD_OS_AccessFlags flags, MD_OS_Handle file);
|
||||
MD_API void md_os_file_map_close (MD_OS_Handle map);
|
||||
MD_API void* md_os_file_map_view_open (MD_OS_Handle map, MD_OS_AccessFlags flags, MD_Rng1U64 range);
|
||||
MD_API void md_os_file_map_view_close(MD_OS_Handle map, void* ptr, MD_Rng1U64 range);
|
||||
|
||||
MD_API void md_os_file_map_close (MD_OS_Handle map);
|
||||
MD_API void* md_os_file_map_view_open (MD_OS_Handle map, MD_OS_AccessFlags flags, MD_Rng1U64 range);
|
||||
MD_API void md_os_file_map_view_close(MD_OS_Handle map, void* ptr, MD_Rng1U64 range);
|
||||
|
||||
//- rjf: directory iteration
|
||||
MD_OS_FileIter* md_os_file_iter_begin__arena(MD_Arena* arena, MD_String8 path, MD_OS_FileIterFlags flags);
|
||||
MD_API MD_OS_FileIter* md_os_file_iter_begin__ainfo(MD_AllocatorInfo ainfo, MD_String8 path, MD_OS_FileIterFlags flags);
|
||||
|
||||
@@ -3,22 +3,22 @@
|
||||
# include "base/namespace.h"
|
||||
#endif
|
||||
|
||||
#if !defined(OS_FEATURE_GRAPHICAL)
|
||||
# define OS_FEATURE_GRAPHICAL 0
|
||||
#if !defined(MD_OS_FEATURE_GRAPHICAL)
|
||||
# define MD_OS_FEATURE_GRAPHICAL 0
|
||||
#endif
|
||||
|
||||
#if !defined(OS_GFX_STUB)
|
||||
# define OS_GFX_STUB 0
|
||||
#if !defined(MD_OS_GFX_STUB)
|
||||
# define MD_OS_GFX_STUB 0
|
||||
#endif
|
||||
|
||||
#if OS_WINDOWS
|
||||
#if MD_OS_WINDOWS
|
||||
# include "os/win32/os_win32_includes.h"
|
||||
|
||||
MD_NS_BEGIN
|
||||
# include "os/win32/os_win32.h"
|
||||
MD_NS_END
|
||||
|
||||
#elif OS_LINUX
|
||||
#elif MD_OS_LINUX
|
||||
# include "os/linux/os_linux_includes.h"
|
||||
|
||||
MD_NS_BEGIN
|
||||
|
||||
Reference in New Issue
Block a user