Is there any way to set C99 compliance?

4 views
Skip to first unread message

Bear Giles

unread,
Jul 20, 2015, 3:54:56 PM7/20/15
to pgxn-...@googlegroups.com
Is there any way to set C99 compliance? Or does the standard postgresql builder not support it and everything has to be written to C90?

Thanks,

Bear

Jim Nasby

unread,
Jul 20, 2015, 4:41:54 PM7/20/15
to pgxn-...@googlegroups.com
On 7/20/15 2:54 PM, Bear Giles wrote:
> Is there any way to set C99 compliance? Or does the standard postgresql
> builder not support it and everything has to be written to C90?

PGXS questions (which I think is what this is) are probably better
directed to pgsql-general or -hackers.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Data in Trouble? Get it in Treble! http://BlueTreble.com

Bear Giles

unread,
Jul 20, 2015, 7:04:12 PM7/20/15
to pgxn-...@googlegroups.com
​I found part of the answer. You can add flags with

    override CFLAGS += -std=c99

at the bottom of the Makefile to add compiler flags.

Unfortunately that doesn't fix my problem with macro substitutions. I have a workaround but it produces a lot of compiler warnings. It's either that or a lot of cut-and-paste and all of the problems it introduces.

Bear 



--
You received this message because you are subscribed to the Google Groups "PGXN Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pgxn-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David E. Wheeler

unread,
Jul 20, 2015, 7:28:17 PM7/20/15
to pgxn-...@googlegroups.com
On Jul 20, 2015, at 4:03 PM, Bear Giles <bgi...@coyotesong.com> wrote:

> Unfortunately that doesn't fix my problem with macro substitutions. I have a workaround but it produces a lot of compiler warnings. It's either that or a lot of cut-and-paste and all of the problems it introduces.

Yeah, someone on -hackers could probably help if you pasted your Makefile and list of warnings there.

Best,

David
Reply all
Reply to author
Forward
0 new messages