cblas: typedef enums for improved compatibility with Intel MKL.
authorZaheer Chothia <zaheer.chothia@gmail.com>
Mon, 25 Jun 2012 11:51:46 +0000 (13:51 +0200)
committerZaheer Chothia <zaheer.chothia@gmail.com>
Sat, 19 Jan 2013 21:57:13 +0000 (22:57 +0100)
commit200e4acf152f11444cf32f8a2a93fde0bc700e9d
treece103436c305a4f6dfa770a055b500b194bff1d3
parent99d1978df7d9968db1e1f7ed147f67a9ec799d95
cblas: typedef enums for improved compatibility with Intel MKL.

Netlib style:
    enum CBLAS_XYZ {X=1, Y=2, Z=3};

Intel MKL style:
    typedef enum {X=1, Y=2, Z=3} CBLAS_XYZ;

With this hybrid style, code written in the latter form won't need any
modifications to be built with OpenBLAS.  This change should not affect existing
code, although a warning may be emitted for C code which does the following
(does not occur with C++):
    typedef enum CBLAS_XYZ CBLAS_XYZ;
    warning: redefinition of typedef 'CBLAS_XYZ' [-pedantic]
cblas.h