1
1

Use __WINDOWS__ instead of _WIN32.

This commit was SVN r8479.
Этот коммит содержится в:
George Bosilca 2005-12-13 06:05:37 +00:00
родитель 30648c55ff
Коммит e77f60abfe
4 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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 "/"