summaryrefslogtreecommitdiff
path: root/kern/stdint.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-01-13 00:16:09 +0100
committerRichard Braun <rbraun@sceen.net>2017-01-13 00:16:09 +0100
commitcf59c5fa63b4639777fbe28fba79cfbd63fa6d4e (patch)
tree6cd4b64fc94f7cc9c2c1f75ba298169a88248657 /kern/stdint.h
parent27e9a04a0a07707d7a85dc65198b4ab8f32888f6 (diff)
Replace unsigned long with uintptr_t for integer/pointer conversions
This is mostly done for the machine-independent part.
Diffstat (limited to 'kern/stdint.h')
-rw-r--r--kern/stdint.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/kern/stdint.h b/kern/stdint.h
index d6794c4e..7aac9170 100644
--- a/kern/stdint.h
+++ b/kern/stdint.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2011 Richard Braun.
+ * Copyright (c) 2010-2017 Richard Braun.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,6 +18,8 @@
#ifndef _KERN_STDINT_H
#define _KERN_STDINT_H
+typedef unsigned long uintptr_t;
+
typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef signed short int16_t;