Add some platform abstractions.

(This is a merge of http://go/wvgerrit/70303)

This adds a platform.h file to abstract some of the differences
between Windows and POSIX platforms.  This includes ntohl, setenv,
and ssize_t.

Bug: 122953649
Test: Android Unit Tests
Change-Id: I3235f3f284b53d24d7365ff3f4a06dcd9b403697
This commit is contained in:
John W. Bruce
2019-01-15 16:53:22 -08:00
parent 1cd093795e
commit 777abaef01
21 changed files with 74 additions and 20 deletions

View File

@@ -7,7 +7,6 @@
#include "crypto_session.h"
#include <arpa/inet.h> // needed for ntoh()
#include <string.h>
#include <algorithm>
#include <iostream>
@@ -20,6 +19,7 @@
#include "openssl/asn1.h"
#include "openssl/sha.h"
#include "openssl/x509v3.h"
#include "platform.h"
#include "properties.h"
#include "pst_report.h"
#include "string_conversions.h"