2
0

Standardize includes for other POSIX platforms.

This commit is contained in:
Maarten Billemont 2015-01-19 23:21:10 -05:00
parent ae74ab6906
commit 21630e919b
11 changed files with 9 additions and 8 deletions

View File

@ -280,6 +280,7 @@ mpw-tests() {
# include paths # include paths
-I"lib/include" -I"lib/include"
-I"/usr/include/libxml2" -I"/usr/include/libxml2"
-I"/usr/local/include/libxml2"
) )
LDFLAGS=( LDFLAGS=(
# scrypt # scrypt

View File

@ -6,7 +6,7 @@
// Copyright (c) 2014 Lyndir. All rights reserved. // Copyright (c) 2014 Lyndir. All rights reserved.
// //
#import "mpw-types.h" #include "mpw-types.h"
typedef enum(unsigned int, MPAlgorithmVersion) { typedef enum(unsigned int, MPAlgorithmVersion) {
/** V0 did math with chars whose signedness was platform-dependent. */ /** V0 did math with chars whose signedness was platform-dependent. */

View File

@ -9,8 +9,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <arpa/inet.h>
#include "mpw-types.h"
#include "mpw-util.h" #include "mpw-util.h"
#define MP_N 32768 #define MP_N 32768

View File

@ -9,8 +9,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <arpa/inet.h>
#include "mpw-types.h"
#include "mpw-util.h" #include "mpw-util.h"
#define MP_N 32768 #define MP_N 32768

View File

@ -9,8 +9,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <arpa/inet.h>
#include "mpw-types.h"
#include "mpw-util.h" #include "mpw-util.h"
#define MP_N 32768 #define MP_N 32768

View File

@ -9,8 +9,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <arpa/inet.h>
#include "mpw-types.h"
#include "mpw-util.h" #include "mpw-util.h"
#define MP_N 32768 #define MP_N 32768

View File

@ -15,7 +15,6 @@
#include <scrypt/sha256.h> #include <scrypt/sha256.h>
#include <bcrypt/ow-crypt.h> #include <bcrypt/ow-crypt.h>
#include "mpw-types.h"
#include "mpw-algorithm.h" #include "mpw-algorithm.h"
#include "mpw-util.h" #include "mpw-util.h"

View File

@ -15,7 +15,6 @@
#define ftl(...) do { fprintf( stderr, __VA_ARGS__ ); exit(2); } while (0) #define ftl(...) do { fprintf( stderr, __VA_ARGS__ ); exit(2); } while (0)
#include "mpw-types.h"
#include "mpw-algorithm.h" #include "mpw-algorithm.h"
#include "mpw-util.h" #include "mpw-util.h"

View File

@ -5,7 +5,6 @@
#define ftl(...) do { fprintf( stderr, __VA_ARGS__ ); exit(2); } while (0) #define ftl(...) do { fprintf( stderr, __VA_ARGS__ ); exit(2); } while (0)
#include "mpw-types.h"
#include "mpw-algorithm.h" #include "mpw-algorithm.h"
#include "mpw-util.h" #include "mpw-util.h"

View File

@ -7,6 +7,7 @@
// //
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h>
#ifdef NS_ENUM #ifdef NS_ENUM
#define enum(_type, _name) NS_ENUM(_type, _name) #define enum(_type, _name) NS_ENUM(_type, _name)

View File

@ -6,6 +6,8 @@
// Copyright (c) 2014 Lyndir. All rights reserved. // Copyright (c) 2014 Lyndir. All rights reserved.
// //
#include <stdint.h>
//// Logging. //// Logging.
#ifdef DEBUG #ifdef DEBUG