windows support
This commit is contained in:
parent
f1cd631aae
commit
b9004acd79
16 changed files with 208 additions and 32 deletions
|
|
@ -1,6 +1,12 @@
|
|||
#include <MDE/Core/Users.h>
|
||||
#include <MDE/Core/String.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
void MDEUsersList(void (*call)(const char* name, void* user), void* user) {
|
||||
/* wow */
|
||||
call("Administrator", user);
|
||||
}
|
||||
#else
|
||||
#include <pwd.h>
|
||||
|
||||
void MDEUsersList(void (*call)(const char* name, void* user), void* user) {
|
||||
|
|
@ -37,3 +43,4 @@ void MDEUsersList(void (*call)(const char* name, void* user), void* user) {
|
|||
}
|
||||
endpwent();
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue