Use __WINDOWS__ instead of _WIN32.
This commit was SVN r8479.
Этот коммит содержится в:
родитель
30648c55ff
Коммит
e77f60abfe
@ -130,7 +130,7 @@ static bool try_dlopen(const char *dir, const char *fw, const char *comp,
|
||||
{
|
||||
char component_name[BUFSIZ];
|
||||
char file_name[BUFSIZ];
|
||||
#ifdef WIN32
|
||||
#ifdef __WINDOWS__
|
||||
char dirsep = '\\';
|
||||
#else
|
||||
char dirsep = '/';
|
||||
@ -184,7 +184,7 @@ static char *dir_concat(const char *a, const char *b)
|
||||
name[0] = '\0';
|
||||
if (NULL != a) {
|
||||
strcat(name, a);
|
||||
#ifdef WIN32
|
||||
#ifdef __WINDOWS__
|
||||
strcat(name, "\\");
|
||||
#else
|
||||
strcat(name, "/");
|
||||
|
@ -44,7 +44,7 @@ int main(int argc, char* argv[])
|
||||
test("/yow.c/", "yow.c");
|
||||
test("//", "/");
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef __WINDOWS__
|
||||
test("C:\\foo\\bar\\baz", "baz");
|
||||
test("D:foo.txt", "foo.txt");
|
||||
test("E:\\yow.c", "yow.c");
|
||||
|
@ -35,7 +35,7 @@
|
||||
#include "opal/util/os_path.h"
|
||||
#include "opal/util/os_create_dirpath.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef __WINDOWS__
|
||||
#define PATH_SEP "\\"
|
||||
#else
|
||||
#define PATH_SEP "/"
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include "opal/util/os_path.h"
|
||||
#include "support.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef __WINDOWS__
|
||||
#define PATH_SEP "\\"
|
||||
#else
|
||||
#define PATH_SEP "/"
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user