Hi all,
If I have a .h file (let’s call it test.h) that contains:
#define SOME_VAL 255
…and my extconf.rb file contains:
have_header(‘test.h’)
…and the source file (let’s call it test.c) contains:
#include “ruby.h”
#ifdef HAVE_TEST_H
#include <test.h>
#endif
…shouldn’t the test.c file now be able to see the SOME_VAL constant?
e.g. char buf[SOME_VAL];
In my own testing, it doesn’t seem to be able to see it. I’ll get “first
use this function” errors.
Thanks in advance for any help.
Regards,
Dan