summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-11-17 23:08:15 +0200
committerMartin Storsjö <martin@martin.st>2014-11-24 23:36:29 +0200
commit960aff379da46dcaff61504a57714d4d4e758e41 (patch)
treebc7789d4d4435845a5bb99e94c7e8933c397a2e9 /libavformat/internal.h
parentb9d08c77a44390b0848c06f20bc0e9e951ba6a3c (diff)
lavf: Use wchar functions for filenames on windows for mkdir/rmdir/rename/unlink
This makes sure that the internal utf8 path names are handled properly - the normal file handling functions assume path names are in the native codepage, which isn't utf8. This assumes that the tools outside of lavf don't use the mkdir definition. (The tools don't do the same reading of command line parameters as wchar either - they probably won't handle all possible unicode file parameters properly, but at least work more predictably if no utf8/wchar conversion is involved.) This is moved further down in os_support.h, since windows.h shouldn't be included before winsock2.h, while io.h needs to be included before the manual defines for lseek functions. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 5feb0f8434..d69ce492fa 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -23,6 +23,7 @@
#include <stdint.h>
#include "avformat.h"
+#include "os_support.h"
#define MAX_URL_SIZE 4096