|
9 | 9 |
|
10 | 10 | // Example include file for a user library.
|
11 | 11 |
|
| 12 | +#ifndef MY_INTERNAL_H |
| 13 | +#define MY_INTERNAL_H |
| 14 | + |
| 15 | +#undef VER3CODE |
| 16 | +#define VER3CODE(major,minor,sub) (((major)*1000ULL + (minor))*1000ULL + (sub)) |
| 17 | + |
12 | 18 | // SuiteSparse include files for C/C++:
|
13 | 19 | #include "SuiteSparse_config.h"
|
14 | 20 | #if !defined (SUITESPARSE_VERSION) || \
|
|
54 | 60 | #if ! defined (NO_GRAPHBLAS)
|
55 | 61 | #include "GraphBLAS.h"
|
56 | 62 | #if !defined ( GxB_SUITESPARSE_GRAPHBLAS ) || \
|
57 |
| - GxB_IMPLEMENTATION < GxB_VERSION(8,3,0) |
| 63 | + GxB_IMPLEMENTATION < GxB_VERSION (8,3,0) |
58 | 64 | #error "This library requires SuiteSparse:GraphBLAS 8.3.0 or later"
|
59 | 65 | #endif
|
60 | 66 | #endif
|
61 | 67 |
|
62 | 68 | #if ! defined (NO_LAGRAPH)
|
63 | 69 | #include "LAGraph.h"
|
64 |
| - #if GxB_VERSION (LAGRAPH_VERSION_MAJOR,LAGRAPH_VERSION_MINOR, \ |
65 |
| - LAGRAPH_VERSION_UPDATE) < GxB_VERSION(1,1,0) |
| 70 | + #if VER3CODE (LAGRAPH_VERSION_MAJOR,LAGRAPH_VERSION_MINOR, \ |
| 71 | + LAGRAPH_VERSION_UPDATE) < VER3CODE(1,1,0) |
66 | 72 | #error "This library requires LAGraph 1.1.0 or later"
|
67 | 73 | #endif
|
68 | 74 | #endif
|
|
83 | 89 | #endif
|
84 | 90 |
|
85 | 91 | #include "SPEX.h"
|
86 |
| -#if GxB_VERSION (SPEX_VERSION_MAJOR,SPEX_VERSION_MINOR, \ |
87 |
| - SPEX_VERSION_SUB) < GxB_VERSION(2,3,0) |
| 92 | +#if VER3CODE (SPEX_VERSION_MAJOR,SPEX_VERSION_MINOR, SPEX_VERSION_SUB) \ |
| 93 | + < VER3CODE(2,3,0) |
88 | 94 | #error "This library requires SPEX 2.3.0 or later"
|
89 | 95 | #endif
|
90 | 96 |
|
|
103 | 109 | #include "SuiteSparseQR.hpp"
|
104 | 110 |
|
105 | 111 | #include "Mongoose.hpp"
|
106 |
| - #if GxB_VERSION (Mongoose_VERSION_MAJOR,Mongoose_VERSION_MINOR, \ |
107 |
| - Mongoose_VERSION_PATCH) < GxB_VERSION(3,3,0) |
| 112 | + #if VER3CODE (Mongoose_VERSION_MAJOR,Mongoose_VERSION_MINOR, \ |
| 113 | + Mongoose_VERSION_PATCH) < VER3CODE(3,3,0) |
108 | 114 | #error "This library requires Mongoose 3.3.0 or later"
|
109 | 115 | #endif
|
110 | 116 |
|
|
115 | 121 |
|
116 | 122 | #include "my.h"
|
117 | 123 |
|
| 124 | +#endif |
0 commit comments