| 1 |
diff --git a/mingw-w64-tools/widl/src/widl.c b/mingw-w64-tools/widl/src/widl.c |
| 2 |
index 6eb81d128..ef9ced031 100644 |
| 3 |
--- a/mingw-w64-tools/widl/src/widl.c |
| 4 |
+++ b/mingw-w64-tools/widl/src/widl.c |
| 5 |
@@ -635,7 +635,7 @@ static void option_callback( int optc, char *optarg ) |
| 6 |
|
| 7 |
int open_typelib( const char *name ) |
| 8 |
{ |
| 9 |
- static const char *default_dirs[] = { LIBDIR "/wine", "/usr/lib/wine", "/usr/local/lib/wine" }; |
| 10 |
+ static const char *default_dirs[] = { LIBDIR }; |
| 11 |
struct target win_target = { target.cpu, PLATFORM_WINDOWS }; |
| 12 |
const char *pe_dir = get_arch_dir( win_target ); |
| 13 |
int fd; |
| 14 |
@@ -666,8 +666,7 @@ int open_typelib( const char *name ) |
| 15 |
{ |
| 16 |
if (libdir) |
| 17 |
{ |
| 18 |
- TRYOPEN( strmake( "%s/wine%s/%s", libdir, pe_dir, name )); |
| 19 |
- TRYOPEN( strmake( "%s/wine/%s", libdir, name )); |
| 20 |
+ TRYOPEN( strmake( "%s/%s", libdir, name )); |
| 21 |
} |
| 22 |
for (i = 0; i < ARRAY_SIZE(default_dirs); i++) |
| 23 |
{ |
| 24 |
@@ -697,18 +696,16 @@ int main(int argc,char *argv[]) |
| 25 |
|
| 26 |
if (stdinc) |
| 27 |
{ |
| 28 |
- static const char *incl_dirs[] = { INCLUDEDIR, "/usr/include", "/usr/local/include" }; |
| 29 |
+ static const char *incl_dirs[] = { INCLUDEDIR }; |
| 30 |
|
| 31 |
if (includedir) |
| 32 |
{ |
| 33 |
- wpp_add_include_path( strmake( "%s/wine/msvcrt", includedir )); |
| 34 |
- wpp_add_include_path( strmake( "%s/wine/windows", includedir )); |
| 35 |
+ wpp_add_include_path( includedir ); |
| 36 |
} |
| 37 |
for (i = 0; i < ARRAY_SIZE(incl_dirs); i++) |
| 38 |
{ |
| 39 |
if (i && !strcmp( incl_dirs[i], incl_dirs[0] )) continue; |
| 40 |
- wpp_add_include_path( strmake( "%s%s/wine/msvcrt", sysroot, incl_dirs[i] )); |
| 41 |
- wpp_add_include_path( strmake( "%s%s/wine/windows", sysroot, incl_dirs[i] )); |
| 42 |
+ wpp_add_include_path( strmake( "%s%s", sysroot, incl_dirs[i] )); |
| 43 |
} |
| 44 |
} |
| 45 |
|