<commit_before>require 'formula'

class DyldHeaders < Formula
  homepage 'http://opensource.apple.com/'
  url 'http://opensource.apple.com/tarballs/dyld/dyld-210.2.3.tar.gz'
  sha1 'fd1c6b6e08d0bb8a4682ffb705f5921d10bdbd64'

  keg_only :provided_by_osx

  # Use Tiger-style availability macros
  def patches; DATA; end if MacOS.version < :leopard

  def install
    include.install Dir['include/*']
  end
end

__END__
diff --git a/include/dlfcn.h b/include/dlfcn.h
index 7e4ae35..60557d2 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -58,7 +58,7 @@ extern void * dlopen(const char * __path, int __mode);
 extern void * dlsym(void * __handle, const char * __symbol);
 
 #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-extern bool dlopen_preflight(const char* __path) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
+extern bool dlopen_preflight(const char* __path) __attribute__((unavailable));
 #endif /* not POSIX */
 
 
diff --git a/include/mach-o/dyld.h b/include/mach-o/dyld.h
index 3f579ef..3bc084c 100644
--- a/include/mach-o/dyld.h
+++ b/include/mach-o/dyld.h
@@ -29,7 +29,7 @@
 #include <stdbool.h>
 
 #include <mach-o/loader.h>
-#include <Availability.h>
+#include <AvailabilityMacros.h><commit_msg>dyld-headers: use patch DSL<commit_after>require 'formula'

class DyldHeaders < Formula
  homepage 'http://opensource.apple.com/'
  url 'http://opensource.apple.com/tarballs/dyld/dyld-210.2.3.tar.gz'
  sha1 'fd1c6b6e08d0bb8a4682ffb705f5921d10bdbd64'

  keg_only :provided_by_osx

  # Use Tiger-style availability macros
  patch :DATA if MacOS.version < :leopard

  def install
    include.install Dir['include/*']
  end
end

__END__
diff --git a/include/dlfcn.h b/include/dlfcn.h
index 7e4ae35..60557d2 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -58,7 +58,7 @@ extern void * dlopen(const char * __path, int __mode);
 extern void * dlsym(void * __handle, const char * __symbol);
 
 #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-extern bool dlopen_preflight(const char* __path) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
+extern bool dlopen_preflight(const char* __path) __attribute__((unavailable));
 #endif /* not POSIX */
 
 
diff --git a/include/mach-o/dyld.h b/include/mach-o/dyld.h
index 3f579ef..3bc084c 100644
--- a/include/mach-o/dyld.h
+++ b/include/mach-o/dyld.h
@@ -29,7 +29,7 @@
 #include <stdbool.h>
 
 #include <mach-o/loader.h>
-#include <Availability.h>
+#include <AvailabilityMacros.h>
{'fraction_non_alphanumeric': 0.14250714577378523, 'fraction_numerical': 0.059616169865251124, 'mean_word_length': 4.337690631808279, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6164446', 'n_tokens_mistral': 1103, 'n_tokens_neox': 981, 'n_words': 186}