windows use right perversion flgs
authorAndy Green <andy.green@linaro.org>
Thu, 10 Dec 2015 04:56:46 +0000 (12:56 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 10 Dec 2015 04:56:46 +0000 (12:56 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/lws-plat-win.c

index f7afd99..244ae6b 100644 (file)
@@ -417,7 +417,7 @@ _lws_plat_file_open(const char *filename, unsigned long *filelen, int flags)
        WCHAR buf[MAX_PATH];
 
        MultiByteToWideChar(CP_UTF8, 0, filename, -1, buf, ARRAY_SIZE(buf));
-       if (flags & O_RDONLY) {
+       if (flags & _O_RDONLY) {
                ret = CreateFileW(buf, GENERIC_READ, FILE_SHARE_READ,
                          NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
        } else {