Open GoogleCodeExporter opened 9 years ago
Honestly I would have to call this a bug in SLURM. They shouldn't have exported
these internal interfaces via a public header file, especially since they are
breaking the very projects from which they initially _inherited_ the code in
question. It just seems a bit dirty to change the upstream version of the code
because SLURM decided to publicise these interfaces.
There are multiple LLNL initiated projects that use hostlist.[ch] and
list.[ch], and because of this issue *they* all have to change (if any want to
eventually also compile against slurm.h).
That being said the approach of wrapping typedefs in preprocessor macros seems
like
it might be the only viable solution, especially if SLURM is unwilling to fix
their header file. So, let me think some more about this one... but otherwise
your fix seems fine.
Original comment by mark.gro...@gmail.com
on 18 Jan 2014 at 12:11
Original issue reported on code.google.com by
michaelf...@gmail.com
on 10 Jan 2014 at 9:59Attachments: