Acme-Alien-__cpu_model

 view release on metacpan or  search on metacpan

inc/cpu_model.c  view on Meta::CPAN

const struct __processor_model {
  unsigned int __cpu_vendor;
  unsigned int __cpu_type;
  unsigned int __cpu_subtype;
  unsigned int __cpu_features[1];
} __cpu_model;

lib/Acme/Alien/__cpu_model.pm  view on Meta::CPAN

Older GCCs, and some recent Clangs, like my Apple LLVM 8.0.0 (clang-800.0.42.1), lack the C<__cpu_model> builtin, which some libraries like GLFW depend on.

This package provides a useless definition, that allows packages using GLFW on such a system to link. As long you don't use any function, that depends on the exact value of C<__cpu_model>, all should be well.

=head1 IMPLEMENTATION

    const struct __processor_model {
      unsigned int __cpu_vendor;
      unsigned int __cpu_type;
      unsigned int __cpu_subtype;
      unsigned int __cpu_features[1];
    } __cpu_model;

An archive is created with a single (non-COMMON) __cpu_model symbol


=cut

1;
__END__



( run in 0.242 second using v1.01-cache-2.11-cpan-4d50c553e7e )