summaryrefslogtreecommitdiffstats
path: root/ast/erfa.h
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-12-08 18:59:21 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-12-08 18:59:21 (GMT)
commit4432c8d7e1ccb371db03e13cdb5378fceaa5ad04 (patch)
tree52449d211eba99b24d2e4f6e66193f9511c60b59 /ast/erfa.h
parentd8a2dbd825159e4a57ec0c6f4465f62be9e05111 (diff)
downloadblt-4432c8d7e1ccb371db03e13cdb5378fceaa5ad04.zip
blt-4432c8d7e1ccb371db03e13cdb5378fceaa5ad04.tar.gz
blt-4432c8d7e1ccb371db03e13cdb5378fceaa5ad04.tar.bz2
upgrade AST
Diffstat (limited to 'ast/erfa.h')
-rw-r--r--ast/erfa.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/ast/erfa.h b/ast/erfa.h
new file mode 100644
index 0000000..1f98296
--- /dev/null
+++ b/ast/erfa.h
@@ -0,0 +1,72 @@
+#if !defined( ERFA_INCLUDED ) /* Include this file only once */
+#define ERFA_INCLUDED
+/*
+*+
+* Name:
+* erfa.h
+
+* Purpose:
+* Function prototypes for ERFA routines.
+
+* Language:
+* Starlink ANSI C
+
+* Type of Module:
+* Include file
+
+* Description:
+* Function prototypes for ERFA routines. Note, the
+* --with-external_pal configuration option implies that an external
+* ERFA library will also be used.
+
+* Authors:
+* DSBJ: David S Berry (JAC, Hawaii)
+* {enter_new_authors_here}
+
+* History:
+* 23-FEB-2012 (DSB):
+* Initial version.
+* {enter_further_changes_here}
+
+* Copyright:
+* Copyright (C) 2012 Science and Technology Facilities Council.
+* All Rights Reserved.
+
+* Licence:
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License as
+* published by the Free Software Foundation; either version 3 of
+* the License, or (at your option) 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 General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+* USA.
+
+* Bugs:
+* {note_any_bugs_here}
+*-
+*/
+
+/* Include configuration results in order to get any definition for the
+ EXTERNAL_PAL macro. This macro is set if the --with-external_pal
+ option was set when AST was configured. */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+/* If we not using an external ERFA library, rename all ERFA functions so
+ that references to "iauXxx" below get translated to "astIauXxx". */
+#ifndef EXTERNAL_PAL
+#include "erfa2ast.h"
+#endif
+
+/* Include the prototypes defined in the erfa header file. */
+#include "erfa/erfa.h"
+
+#endif