diff --git a/GNUmakefile b/GNUmakefile index 2e5ccce..9441040 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -17,6 +17,7 @@ libobjc_OBJC_FILES = \ libobjc_C_FILES = \ abi_version.c\ + caps.c\ category_loader.c\ class_table.c\ dtable.c\ @@ -43,6 +44,7 @@ ifneq ($(install_headers), no) libobjc_HEADER_FILES = \ Availability.h\ blocks_runtime.h\ + capabilities.h\ hooks.h\ runtime.h\ slot.h\ diff --git a/caps.c b/caps.c new file mode 100644 index 0000000..2832e38 --- /dev/null +++ b/caps.c @@ -0,0 +1,28 @@ +#include "objc/capabilities.h" +#include + +/** + * Bitmask of all of the capabilities compiled into this version of the + * runtime. + */ +static const int32_t caps = + (1<= 32) { return 0; } + if (caps & (1<