Skip to content

Commit

Permalink
lvector type should be long long for _WIN64.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoel committed Feb 12, 2024
1 parent c409a56 commit 75c4ab3
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/linad99/fvar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,23 @@ Macro definitions.
#define AD_LONG_INT long long int
#endif
#elif defined(_MSC_VER)
#define OFF_T __int64
#define LSEEK _lseeki64
#ifdef _WIN64
#define OFF_T __int64
#define LSEEK _lseeki64
#else
#define OFF_T long
#define LSEEK _lseek
#endif
#define READ _read
#define WRITE _write
#if defined(AD_LONG_INT)
#error "Error: AD_LONG_INT should not be defined."
#else
#define AD_LONG_INT long int
#ifdef _WIN64
#define AD_LONG_INT long long int
#else
#define AD_LONG_INT long int
#endif
#endif
#else
#define OFF_T off_t
Expand Down

0 comments on commit 75c4ab3

Please sign in to comment.