diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/Sci_Position.h | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/include/Sci_Position.h b/include/Sci_Position.h index a83e2864f..1360b2dce 100644 --- a/include/Sci_Position.h +++ b/include/Sci_Position.h @@ -9,11 +9,13 @@  #ifndef SCI_POSITION_H  #define SCI_POSITION_H +#include <stddef.h> +  // Basic signed type used throughout interface -typedef int Sci_Position; +typedef ptrdiff_t Sci_Position;  // Unsigned variant used for ILexer::Lex and ILexer::Fold -typedef unsigned int Sci_PositionU; +typedef size_t Sci_PositionU;  // For Sci_CharacterRange  which is defined as long to be compatible with Win32 CHARRANGE  typedef long Sci_PositionCR;  | 
