3 ms·
Reading this reminds me of the days in the 90s when programs could target 10+ different Unix systems and shipped as giant tar balls of code. The C code consiste
by ToddWBurgess 5y ago
Reading this reminds me of the days in the 90s when programs could target 10+ different Unix systems and shipped as giant tar balls of code. The C code consisted of giant #ifdef <UNIX VENDOR> blocks to accommodate how different Unix systems might handle a couple system calls.
It wasn't uncommon for the wrong block of code to get included so you had to figure out how the compile target's system call worked, how your system's system call worked and modify the code accordingly to get it to compile (and hope it worked). This was the 1990s so getting code to compile on Linux wasn't a high priority (since Linux was still in its infancy).
Fun times.
- dandotway 5y ago> in the 90s when programs could target 10+ different Unix systems Fast forward to present: programs can target 10+ different Linux systems. Fast forward 30 years to the future: programs can target 10+ different Ubuntu systems.
- jart 5y agoWhat if I told you that today we can build executable files that run on five different UNIX systems and we don't need #ifdefs?
- hulitu 5y agoAny 5 different or especially selected 5 different ?