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 component_name[BUFSIZ];
|
||||||
char file_name[BUFSIZ];
|
char file_name[BUFSIZ];
|
||||||
#ifdef WIN32
|
#ifdef __WINDOWS__
|
||||||
char dirsep = '\\';
|
char dirsep = '\\';
|
||||||
#else
|
#else
|
||||||
char dirsep = '/';
|
char dirsep = '/';
|
||||||
@ -184,7 +184,7 @@ static char *dir_concat(const char *a, const char *b)
|
|||||||
name[0] = '\0';
|
name[0] = '\0';
|
||||||
if (NULL != a) {
|
if (NULL != a) {
|
||||||
strcat(name, a);
|
strcat(name, a);
|
||||||
#ifdef WIN32
|
#ifdef __WINDOWS__
|
||||||
strcat(name, "\\");
|
strcat(name, "\\");
|
||||||
#else
|
#else
|
||||||
strcat(name, "/");
|
strcat(name, "/");
|
||||||
|
@ -44,7 +44,7 @@ int main(int argc, char* argv[])
|
|||||||
test("/yow.c/", "yow.c");
|
test("/yow.c/", "yow.c");
|
||||||
test("//", "/");
|
test("//", "/");
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef __WINDOWS__
|
||||||
test("C:\\foo\\bar\\baz", "baz");
|
test("C:\\foo\\bar\\baz", "baz");
|
||||||
test("D:foo.txt", "foo.txt");
|
test("D:foo.txt", "foo.txt");
|
||||||
test("E:\\yow.c", "yow.c");
|
test("E:\\yow.c", "yow.c");
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include "opal/util/os_path.h"
|
#include "opal/util/os_path.h"
|
||||||
#include "opal/util/os_create_dirpath.h"
|
#include "opal/util/os_create_dirpath.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef __WINDOWS__
|
||||||
#define PATH_SEP "\\"
|
#define PATH_SEP "\\"
|
||||||
#else
|
#else
|
||||||
#define PATH_SEP "/"
|
#define PATH_SEP "/"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#include "opal/util/os_path.h"
|
#include "opal/util/os_path.h"
|
||||||
#include "support.h"
|
#include "support.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef __WINDOWS__
|
||||||
#define PATH_SEP "\\"
|
#define PATH_SEP "\\"
|
||||||
#else
|
#else
|
||||||
#define PATH_SEP "/"
|
#define PATH_SEP "/"
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user