Re: alloca() usage, building master pre-0.95 on Windows
Ramiro Morales <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <CAO7PdF_cRaEVj6C09R6-KkEBxdhBUQ0mTuOMx6HVOLeZXOx1Pg@mail.gmail.com> |
On Sat, May 2, 2015 at 6:14 PM, Ramiro Morales <[email protected]> wrote: > My question is: What would be the best path to fix this?: > > 1. Modify token.c to use another function instead of alloca, e.g. > malloc() which is widely used elsewhere in the code base? > 2. Patch token.c so it conditionally #include <malloc.h> if Visual C > is detected? > 3. Another option? Forgot to say I tested option 2 successfully and this the last remaining issue to get master to build on Windows. -- Ramiro Morales @ramiromorales