https://github.com/JuliaLang/julia
Revision 8f76c69cdc3f85c7d29265dfe749f900094a01a3 authored by Shuhei Kadowaki on 19 March 2024, 05:42:23 UTC, committed by GitHub on 19 March 2024, 05:42:23 UTC
So that it can be tested in isolation easier.
1 parent 8e67f99
Raw File
Tip revision: 8f76c69cdc3f85c7d29265dfe749f900094a01a3 authored by Shuhei Kadowaki on 19 March 2024, 05:42:23 UTC
minor refactoring on `find_method_matches` (#53741)
Tip revision: 8f76c69
ccalltest_common.h
// This file is a part of Julia. License is MIT: https://julialang.org/license
#include <stdio.h>
#include <stdlib.h>
#include <complex.h>
#include <stdint.h>
#include <inttypes.h>

#include "../src/support/platform.h"
#include "../src/support/dtypes.h"

// Borrow definition from `support/dtypes.h`
#ifdef _OS_WINDOWS_
#  define DLLEXPORT __declspec(dllexport)
#else
# if defined(_OS_LINUX_) && !defined(_COMPILER_CLANG_)
// Clang and ld disagree about the proper relocation for STV_PROTECTED, causing
// linker errors.
#  define DLLEXPORT __attribute__ ((visibility("protected")))
# else
#  define DLLEXPORT __attribute__ ((visibility("default")))
# endif
#endif

#ifdef _P64
#define jint int64_t
#define PRIjint PRId64
#else
#define jint int32_t
#define PRIjint PRId32
#endif
back to top