Skip to content

Commit

Permalink
Correct header file for ptrdiff_t
Browse files Browse the repository at this point in the history
  • Loading branch information
dspinellis committed Aug 29, 2024
1 parent 00ffaab commit afc1b67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
#ifndef CPP_H
#define CPP_H

#include <cstdlib>
#include <cstddef>

using namespace std;

// The offset we use for files
typedef long cs_offset_t;

/*
* Return as an integral value a pointer's offset for writing it to
* a database.
* Not strictly portable, but better than casting to unsigned
* Return as an integral value a pointer's offset (in units of T) for
* writing it to a database.
* Not strictly portable, but better than casting to unsigned.
*/
template <class T>
inline ptrdiff_t
Expand Down

0 comments on commit afc1b67

Please sign in to comment.