Skip to content

Instantly share code, notes, and snippets.

@migueldeicaza
Created January 21, 2010 17:59
Show Gist options
  • Save migueldeicaza/282999 to your computer and use it in GitHub Desktop.
Save migueldeicaza/282999 to your computer and use it in GitHub Desktop.
File mono-stdint.h.in preprocessed by configure.in, generates mono-stdint.h
@TYPE_DEFINITIONS@
Where TYPE_DEFINITIONS is processed in configure.in to be either:
'#include <stdint.h>'
or
'#include <mono/mono-stdint.h>'
With mono-stdint.h containing:
#ifdef UINT_LEAST64_MAX
/* Ok, we have stdint, do nothing */
#else
# if MONO_OPT_IN_STDINT
typedef @INT32_T@ int32_t;
...
# else
# error Your platform has no stdint.h, to use Mono's types define MONO_OPT_IN_STDINT
# endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment