Commit 20811c5a by Nicolas Cavallari

sysdir: Do not declare win32 functions on non-win32 platforms

These declaration poses problems on some embedded or retro Linux systems
that deliberately disable support for wchar_t from their libc.
parent 8164b481
...@@ -134,10 +134,12 @@ extern int git_sysdir_set(git_sysdir_t which, const char *paths); ...@@ -134,10 +134,12 @@ extern int git_sysdir_set(git_sysdir_t which, const char *paths);
*/ */
extern int git_sysdir_reset(void); extern int git_sysdir_reset(void);
#ifdef GIT_WIN32
/** Sets the registry system dir to a mock; for testing. */ /** Sets the registry system dir to a mock; for testing. */
extern int git_win32__set_registry_system_dir(const wchar_t *mock_sysdir); extern int git_win32__set_registry_system_dir(const wchar_t *mock_sysdir);
/** Find the given system dir; for testing. */ /** Find the given system dir; for testing. */
extern int git_win32__find_system_dirs(git_str *out, const char *subdir); extern int git_win32__find_system_dirs(git_str *out, const char *subdir);
#endif
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment