Changeset 28020


Ignore:
Timestamp:
11/17/23 21:12:03 (16 months ago)
Author:
jdquinn
Message:

BUG: Need to include extern ā€œCā€ still

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/triangle/configs/triangle.h.patch

    r28019 r28020  
    5252 /*                                                                           */
    5353 /*  Any input fields that Triangle will examine must be initialized.         */
    54 @@ -247,17 +247,29 @@
     54@@ -247,17 +247,23 @@
    5555 /*  not used, `numberofsegments' will indicate the number of boundary edges. */
    5656 /*                                                                           */
    5757 /*****************************************************************************/
    5858+
    59 +#pragma once
    60 +
    61 +#ifndef ANSI_DECLARATORS
    62 +#define ANSI_DECLARATORS
    63 +#endif // ANSI_DECLARATORS
    64  
    6559+#ifdef SINGLE
    6660+#define TRI_REAL float
     
    6862+#define TRI_REAL double
    6963+#endif /* not SINGLE */
    70 +
     64 
    7165 struct triangulateio {
    7266-  REAL *pointlist;                                               /* In / out */
     
    8680   int numberoftriangles;                                         /* In / out */
    8781   int numberofcorners;                                           /* In / out */
    88 @@ -267,22 +279,22 @@
     82@@ -267,22 +273,22 @@
    8983   int *segmentmarkerlist;                                        /* In / out */
    9084   int numberofsegments;                                          /* In / out */
     
    106100 
    107101 #ifdef ANSI_DECLARATORS
    108  void triangulate(char *, struct triangulateio *, struct triangulateio *,
     102-void triangulate(char *, struct triangulateio *, struct triangulateio *,
     103+extern "C" void triangulate(char *, struct triangulateio *, struct triangulateio *,
    109104                  struct triangulateio *);
    110105-void trifree(VOID *memptr);
Note: See TracChangeset for help on using the changeset viewer.