ref: 3e3d971cfa090757d18c4dfc6f74baa80f4c3a0c
parent: e1aae79283f289719f6b48076153133faa5a0576
author: menno <menno>
date: Tue Apr 29 04:45:29 EDT 2003
made cooledit plugin compile again C++ did not accept const in structs
--- a/include/faac.h
+++ b/include/faac.h
@@ -16,7 +16,7 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * $Id: faac.h,v 1.25 2003/03/27 17:12:46 knik Exp $
+ * $Id: faac.h,v 1.26 2003/04/29 08:45:27 menno Exp $
*/
#ifndef FAACLIB_H
@@ -52,10 +52,10 @@
typedef struct faacEncConfiguration
{
/* config version */
- const int version;
+ /*const*/ int version;
/* library version */
- const char *name;
+ /*const*/ char *name;
/* MPEG version, 2 or 4 */
unsigned int mpegVersion;
@@ -90,7 +90,7 @@
unsigned int outputFormat;
// psychoacoustic model list
- const struct {
+ /*const*/ struct {
void *ptr;
char *name;
} *psymodellist;
--- a/plugins/cooledit/Faac.cpp
+++ b/plugins/cooledit/Faac.cpp
@@ -165,7 +165,7 @@
"This program is free software and can be distributed/modifyed under the terms of the GNU General Public License.\n"
"This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.\n\n"
"Compiled on %s\n",
- FAACENC_VERSION,
+ /*FAACENC_VERSION*/ FAAC_CFG_VERSION,
__DATE__
);
SetDlgItemText(hWndDlg, IDC_L_ABOUT, buf);
--- a/plugins/cooledit/Structs.h
+++ b/plugins/cooledit/Structs.h
@@ -1,3 +1,7 @@
+
+#ifndef _STRUCTS___
+#define _STRUCTS___
+
typedef struct mec
{
bool AutoCfg;
@@ -12,3 +16,5 @@
DWORD BitRate;
faacDecConfiguration DecCfg;
} MY_DEC_CFG;
+
+#endif
\ No newline at end of file