Skip to content

Commit

Permalink
Merge pull request #252 from EpitechPromo2027/add-macros-to-echo-example
Browse files Browse the repository at this point in the history
Adding macros in echo example
  • Loading branch information
G0nzal0zz authored Jan 19, 2025
2 parents 61ffa65 + 61cf8f5 commit 30de054
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/echo.ff
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ in_addr :: struct {
}

sockaddr_in :: struct {
?defined(__APPLE__)
sin_len -> byte
sin_family -> byte
?else
sin_family -> int16
?end
sin_port -> int16
sin_addr -> in_addr
sin_zero -> *int8
Expand Down

0 comments on commit 30de054

Please sign in to comment.