-
Notifications
You must be signed in to change notification settings - Fork 346
/
gmt_common_runpath.h
62 lines (53 loc) · 1.94 KB
/
gmt_common_runpath.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*--------------------------------------------------------------------
*
* Copyright (c) 1991-2024 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
* See LICENSE.TXT file for copying and redistribution conditions.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; version 3 or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* Contact info: www.generic-mapping-tools.org
*--------------------------------------------------------------------*/
/*
* gmt_common_runpath.h contains prototypes of functions shared between GMT and PSL
*
* Author: Florian Wobbe
* Date: 3-MAR-2012
* Version: 5
*/
/*!
* \file gmt_common_runpath.h
* \brief Prototypes of functions shared between GMT and PSL
*/
#pragma once
#ifndef GMT_COMMON_RUNPATH_H
#define GMT_COMMON_RUNPATH_H
#ifdef __cplusplus /* Basic C++ support */
extern "C" {
#endif
/* CMake definitions: This must be first! */
#include "gmt_config.h"
/* Declaration modifiers for DLL support (MSC et al) */
#include "declspec.h"
/* Prototypes */
#if defined (__APPLE__)
# define gmt_runtime_bindir(result, argv) gmt_runtime_bindir_osx(result)
EXTERN_MSC char *gmt_runtime_bindir_osx (char *result);
#elif defined (_WIN32)
# define gmt_runtime_bindir(result, argv) gmt_runtime_bindir_win32(result)
EXTERN_MSC char *gmt_runtime_bindir_win32 (char *result);
#else
EXTERN_MSC char *gmt_runtime_bindir (char *result, const char *candidate);
#endif
EXTERN_MSC char *gmt_runtime_libdir (char *result);
EXTERN_MSC char *gmt_guess_sharedir (char *sharedir, const char *runpath);
#ifdef __cplusplus
}
#endif
#endif /* !GMT_COMMON_RUNPATH_H */