Skip to content

Instantly share code, notes, and snippets.

View iamleot's full-sized avatar

Leonardo Taccari iamleot

  • Pollenza, Macerata, Italy
View GitHub Profile
@jperkin
jperkin / xopen-stdc-extensions.md
Last active July 19, 2021 10:41
SunOS, _XOPEN_SOURCE, _POSIX_C_SOURCE, C99, etc...

How To Correctly Set _XOPEN_SOURCE and __EXTENSIONS__

This is a work-in-progress, but aims to help navigate the murky waters of setting _XOPEN_SOURCE in such a way that it is compatible across C standards on SunOS systems.

Introduction

A table is worth a thousand words. Defines used in a default compilation environment (i.e. no -std=.. specified):