[libbluray-devel] [PATCH] Consistently use _WIN32
Andreas Zelend
ace20022 at xbmc.org
Wed Oct 9 13:32:43 CEST 2013
Do you mean these whitespace issues?
I made a new diff against current master and attached it. Hope it works now.
On Wed, Oct 9, 2013 at 11:21 AM, Jean-Baptiste Kempf <jb at videolan.org> wrote:
> Please fix your MUA.
>
> Patch not applicable, because of that.
>
> On 09 Oct, Andreas Zelend wrote :
>> src/file/file_posix.c | 6 +++---
>> src/libbluray/bdj/bdj.c | 6 +++---
>> src/libbluray/bdj/native/java_awt_BDFontMetrics.h | 2 +-
>> src/libbluray/bdj/native/java_awt_BDGraphics.h | 2 +-
>> src/libbluray/bdj/native/org_videolan_Libbluray.h | 2 +-
>> src/libbluray/bdj/native/org_videolan_Logger.h | 2 +-
>> 6 files changed, 10 insertions(+), 10 deletions(-)
>>
>> diff --git a/src/file/file_posix.c b/src/file/file_posix.c
>> index 7179216..11bf5bd 100644
>> --- a/src/file/file_posix.c
>> +++ b/src/file/file_posix.c
>> @@ -35,11 +35,11 @@
>> #include <stdlib.h>
>> #include <inttypes.h>
>>
>> -#ifdef WIN32
>> +#ifdef _WIN32
>> #include <windows.h>
>> #define ftello _ftelli64
>> #define fseeko _fseeki64
>> -#endif // #ifdef WIN32
>> +#endif // #ifdef _WIN32
>>
>> static void file_close_linux(BD_FILE_H *file)
>> {
>> @@ -110,7 +110,7 @@ static BD_FILE_H *file_open_linux(const char*
>> filename, const char *mode)
>> file->tell = file_tell_linux;
>> file->eof = file_eof_linux;
>>
>> -#ifdef WIN32
>> +#ifdef _WIN32
>> wchar_t wfilename[MAX_PATH], wmode[8];
>> if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, filename,
>> -1, wfilename, MAX_PATH) &&
>> MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, mode, -1,
>> wmode, 8) &&
>> diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
>> index b811ab3..ccb4fe3 100644
>> --- a/src/libbluray/bdj/bdj.c
>> +++ b/src/libbluray/bdj/bdj.c
>> @@ -61,7 +61,7 @@ static void *_jvm_dlopen(const char *java_home,
>> const char *jvm_dir, const char
>> static void *_load_jvm(const char **p_java_home)
>> {
>> #ifdef HAVE_BDJ_J2ME
>> -# ifdef WIN32
>> +# ifdef _WIN32
>> static const char *jvm_path[] = {NULL, JDK_HOME};
>> static const char jvm_dir[] = "bin";
>> static const char jvm_lib[] = "cvmi";
>> @@ -71,7 +71,7 @@ static void *_load_jvm(const char **p_java_home)
>> static const char jvm_lib[] = "libcvm";
>> # endif
>> #else
>> -# ifdef WIN32
>> +# ifdef _WIN32
>> static const char *jvm_path[] = {NULL, JDK_HOME};
>> static const char jvm_dir[] = "jre/bin/server";
>> static const char jvm_lib[] = "jvm";
>> @@ -111,7 +111,7 @@ static const char *_find_libbluray_jar(void)
>> {
>> // pre-defined search paths for libbluray.jar
>> static const char * const jar_paths[] = {
>> -#ifdef WIN32
>> +#ifdef _WIN32
>> "" BDJ_JARFILE,
>> #else
>> "/usr/lib/libbluray/" BDJ_JARFILE,
>> diff --git a/src/libbluray/bdj/native/java_awt_BDFontMetrics.h
>> b/src/libbluray/bdj/native/java_awt_BDFontMetrics.h
>> index d2a658c..1ba3cea 100644
>> --- a/src/libbluray/bdj/native/java_awt_BDFontMetrics.h
>> +++ b/src/libbluray/bdj/native/java_awt_BDFontMetrics.h
>> @@ -2,7 +2,7 @@
>> #include <jni.h>
>> /* Header for class java_awt_BDFontMetrics */
>>
>> -#ifndef WIN32
>> +#ifndef _WIN32
>> #undef JNIEXPORT
>> #define JNIEXPORT static
>> #endif
>> diff --git a/src/libbluray/bdj/native/java_awt_BDGraphics.h
>> b/src/libbluray/bdj/native/java_awt_BDGraphics.h
>> index b21a8e8..704c425 100644
>> --- a/src/libbluray/bdj/native/java_awt_BDGraphics.h
>> +++ b/src/libbluray/bdj/native/java_awt_BDGraphics.h
>> @@ -2,7 +2,7 @@
>> #include <jni.h>
>> /* Header for class java_awt_BDGraphics */
>>
>> -#ifndef WIN32
>> +#ifndef _WIN32
>> #undef JNIEXPORT
>> #define JNIEXPORT static
>> #endif
>> diff --git a/src/libbluray/bdj/native/org_videolan_Libbluray.h
>> b/src/libbluray/bdj/native/org_videolan_Libbluray.h
>> index a0bcca7..46ed83f 100644
>> --- a/src/libbluray/bdj/native/org_videolan_Libbluray.h
>> +++ b/src/libbluray/bdj/native/org_videolan_Libbluray.h
>> @@ -2,7 +2,7 @@
>> #include <jni.h>
>> /* Header for class org_videolan_Libbluray */
>>
>> -#ifndef WIN32
>> +#ifndef _WIN32
>> #undef JNIEXPORT
>> #define JNIEXPORT static
>> #endif
>> diff --git a/src/libbluray/bdj/native/org_videolan_Logger.h
>> b/src/libbluray/bdj/native/org_videolan_Logger.h
>> index 5c24efb..be8579d 100644
>> --- a/src/libbluray/bdj/native/org_videolan_Logger.h
>> +++ b/src/libbluray/bdj/native/org_videolan_Logger.h
>> @@ -2,7 +2,7 @@
>> #include <jni.h>
>> /* Header for class java_awt_BDGraphics */
>>
>> -#ifndef WIN32
>> +#ifndef _WIN32
>> #undef JNIEXPORT
>> #define JNIEXPORT static
>> #endif
>> _______________________________________________
>> libbluray-devel mailing list
>> libbluray-devel at videolan.org
>> https://mailman.videolan.org/listinfo/libbluray-devel
>
> --
> Best regards,
>
> --
> Jean-Baptiste Kempf
> http://www.jbkempf.com/ - +33 672 704 734
> Sent from my Electronic Device
> _______________________________________________
> libbluray-devel mailing list
> libbluray-devel at videolan.org
> https://mailman.videolan.org/listinfo/libbluray-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win32.patch
Type: application/octet-stream
Size: 3582 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/libbluray-devel/attachments/20131009/d5b6e2eb/attachment.obj>
More information about the libbluray-devel
mailing list