fletcher / MultiMarkdown-4

This project is now deprecated. Please use MultiMarkdown-6 instead!
https://github.com/fletcher/MultiMarkdown-5
Other
306 stars 59 forks source link

AIX support #127

Closed tkob closed 8 years ago

tkob commented 9 years ago

This PR adds AIX support.

The problems while compiling MMD on AIX are:

  1. It does not have vasprintf and asprintf functions
  2. It does not have getopt_long function

Therefore, this PR have the following modifications:

  1. Modify GLibFacade.c so that it uses its own implementation of (v)asprintf
  2. Include an implementation of getopt_long, which is taken from musl libc
  3. Modify Makefile so that getopt_long from musl is linked when compiled on AIX
fletcher commented 8 years ago

I have migrated MultiMarkdown to the CMake system for MMD-5. That should make it easier to manage situations like this.

I am much more amenable to including something like this in the main repo under version 5, especially if it's done in such a way as to keep the clutter to a minimum.

Take a look at MMD-5 and the CMake configuration. I'm happy to help improve that.

Closing since I won't be making further changes to MMD-4 like this.