eqpg doesn't like bit fields - Mailing list pgsql-general

From Noble, Robert
Subject eqpg doesn't like bit fields
Date
Msg-id 6B0B9129813CD411BA490008C7CFC66B0C2931D4@vm-gracim-w2kp6.phlx.net
Whole thread Raw
Responses Re: eqpg doesn't like bit fields  (Michael Meskes <meskes@postgresql.org>)
List pgsql-general
I get the following error from ecpg when it encounters a structure
containing a bit field:

../../include/ecn_types.h:317: ERROR: syntax error at or near ":"

The source it is complaining about is:

   176  typedef enum    {
   177      tifIOC = 0,
   178      tifDay = 1,
   179      tifGTX = 2,
   180      tifGTC = 3
   181  } TIF_e;
   ...
   316  typedef struct {
=> 317      TIF_e       tif         :4;
   318      boolean_t   isCoreOnly  :1;
   ...

Does PostgreSQL support C-language bit fields? I tried searching the
archives, but could not find anything helpful.

Thanks,
Bob Noble

pgsql-general by date:

Previous
From: Michael Glaesemann
Date:
Subject: Re: Primary keys for companies and people
Next
From: aktivists@inbox.lv
Date:
Subject: specifying unix domain socket name