Skip to content

Commit

Permalink
Fix compat file
Browse files Browse the repository at this point in the history
  • Loading branch information
syyyr committed Oct 23, 2024
1 parent 30609c7 commit 098cc35
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libshvchainpack/c/include/shv/chainpack/compat.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#pragma once
#ifdef __has_include
#if __has_include(<unistd.h>)
#include <unistd.h>
#endif
#endif

#ifndef __ssize_t_defined
#define ssize_t int64_t
#include <stdint.h>
typedef intmax_t ssize_t;
#define __ssize_t_defined
#endif

0 comments on commit 098cc35

Please sign in to comment.