Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Replace unistd.h import with custom ssize_t typedef, as mentioned in #…
Browse files Browse the repository at this point in the history
  • Loading branch information
cpdt committed Nov 29, 2018
1 parent a9ab010 commit 022acff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor/compiler/interface/Frontend.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#pragma once

#include <cstdint>
#include <unistd.h>
#if INTPTR_MAX == INT32_MAX
typedef int ssize_t;
#elif INTPTR_MAX == INT64_MAX
typedef int64_t ssize_t;
#endif

namespace MaximFrontend {
using MaximError = void;
Expand Down

0 comments on commit 022acff

Please sign in to comment.