libc: Pick up changes from the TF-A code base

This patch picks up the following changes from TF-A:
- libc: Unify intmax_t and uintmax_t on AArch32/64
- libc: Consolidate unified definitions
- libc: Consolidate the size_t and NULL definitions
- libc: Fix SIZE_MAX on AArch32

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
Change-Id: I6f09ffa4731b9016ad972aece28d9a6ea6f91c32
diff --git a/include/lib/libc/stdlib.h b/include/lib/libc/stdlib.h
index 0ef077f..69eab9e 100644
--- a/include/lib/libc/stdlib.h
+++ b/include/lib/libc/stdlib.h
@@ -4,18 +4,17 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 /*
- * Portions copyright (c) 2018, ARM Limited and Contributors.
+ * Portions copyright (c) 2018-2019, ARM Limited and Contributors.
  * All rights reserved.
  */
 
 #ifndef STDLIB_H
 #define STDLIB_H
 
-#include <stdlib_.h>
+#include <stddef.h>
 
-#ifndef NULL
-#define NULL ((void *) 0)
-#endif
+#define EXIT_FAILURE 1
+#define EXIT_SUCCESS 0
 
 #define _ATEXIT_MAX 1