Skip to content

Commit

Permalink
Tweak include order in yjit_core.c
Browse files Browse the repository at this point in the history
This is playing it safe. Ruby headers rely on some macros generated by
autoconf that affect what system headers behave. We should take care to
bring in those configs before including systme headers to stay
consistent with the rest of Ruby.
  • Loading branch information
XrXr committed Oct 20, 2021
1 parent 5d834bc commit f4c04a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions yjit_core.c
@@ -1,10 +1,13 @@
#include "ruby/ruby.h"
#include "internal.h"
#include "vm_sync.h"
#include "builtin.h"

#include "yjit_asm.h"
#include "yjit_utils.h"
#include "yjit_iface.h"
#include "yjit_core.h"
#include "yjit_codegen.h"
#include "vm_sync.h"
#include "builtin.h"

// Maximum number of versions per block
#define MAX_VERSIONS 4
Expand Down

0 comments on commit f4c04a9

Please sign in to comment.