@@ -329,7 +329,7 @@ fn findNativeIncludeDirPosix(self: *LibCInstallation, args: FindNativeOptions) F
329329 defer search_dir .close ();
330330
331331 if (self .include_dir == null ) {
332- if (search_dir .accessZ (include_dir_example_file , .{})) | _ | {
332+ if (search_dir .access (include_dir_example_file , .{})) | _ | {
333333 self .include_dir = try allocator .dupeZ (u8 , search_path );
334334 } else | err | switch (err ) {
335335 error .FileNotFound = > {},
@@ -338,7 +338,7 @@ fn findNativeIncludeDirPosix(self: *LibCInstallation, args: FindNativeOptions) F
338338 }
339339
340340 if (self .sys_include_dir == null ) {
341- if (search_dir .accessZ (sys_include_dir_example_file , .{})) | _ | {
341+ if (search_dir .access (sys_include_dir_example_file , .{})) | _ | {
342342 self .sys_include_dir = try allocator .dupeZ (u8 , search_path );
343343 } else | err | switch (err ) {
344344 error .FileNotFound = > {},
@@ -382,7 +382,7 @@ fn findNativeIncludeDirWindows(
382382 };
383383 defer dir .close ();
384384
385- dir .accessZ ("stdlib.h" , .{}) catch | err | switch (err ) {
385+ dir .access ("stdlib.h" , .{}) catch | err | switch (err ) {
386386 error .FileNotFound = > continue ,
387387 else = > return error .FileSystem ,
388388 };
@@ -429,7 +429,7 @@ fn findNativeCrtDirWindows(
429429 };
430430 defer dir .close ();
431431
432- dir .accessZ ("ucrt.lib" , .{}) catch | err | switch (err ) {
432+ dir .access ("ucrt.lib" , .{}) catch | err | switch (err ) {
433433 error .FileNotFound = > continue ,
434434 else = > return error .FileSystem ,
435435 };
@@ -496,7 +496,7 @@ fn findNativeKernel32LibDir(
496496 };
497497 defer dir .close ();
498498
499- dir .accessZ ("kernel32.lib" , .{}) catch | err | switch (err ) {
499+ dir .access ("kernel32.lib" , .{}) catch | err | switch (err ) {
500500 error .FileNotFound = > continue ,
501501 else = > return error .FileSystem ,
502502 };
@@ -531,7 +531,7 @@ fn findNativeMsvcIncludeDir(
531531 };
532532 defer dir .close ();
533533
534- dir .accessZ ("vcruntime.h" , .{}) catch | err | switch (err ) {
534+ dir .access ("vcruntime.h" , .{}) catch | err | switch (err ) {
535535 error .FileNotFound = > return error .LibCStdLibHeaderNotFound ,
536536 else = > return error .FileSystem ,
537537 };
0 commit comments