Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: include/FLAC/export.h

Issue 1961133002: Update FLAC to 1.3.1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/flac.git@master
Patch Set: build config tweaks for Windows Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/FLAC/callback.h ('k') | include/FLAC/format.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* libFLAC - Free Lossless Audio Codec library 1 /* libFLAC - Free Lossless Audio Codec library
2 * Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson 2 * Copyright (C) 2000-2009 Josh Coalson
3 * Copyright (C) 2011-2014 Xiph.Org Foundation
3 * 4 *
4 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
6 * are met: 7 * are met:
7 * 8 *
8 * - Redistributions of source code must retain the above copyright 9 * - Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
10 * 11 *
11 * - Redistributions in binary form must reproduce the above copyright 12 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 * This module contains #defines and symbols for exporting function 49 * This module contains #defines and symbols for exporting function
49 * calls, and providing version information and compiled-in features. 50 * calls, and providing version information and compiled-in features.
50 * 51 *
51 * If you are compiling with MSVC and will link to the static library 52 * If you are compiling with MSVC and will link to the static library
52 * (libFLAC.lib) you should define FLAC__NO_DLL in your project to 53 * (libFLAC.lib) you should define FLAC__NO_DLL in your project to
53 * make sure the symbols are exported properly. 54 * make sure the symbols are exported properly.
54 * 55 *
55 * \{ 56 * \{
56 */ 57 */
57 58
58 #if defined(FLAC__NO_DLL) || !defined(_MSC_VER) 59 #if defined(FLAC__NO_DLL)
59 #define FLAC_API 60 #define FLAC_API
60 61
62 #elif defined(_MSC_VER)
63 #ifdef FLAC_API_EXPORTS
64 #define FLAC_API __declspec(dllexport)
61 #else 65 #else
66 #define FLAC_API __declspec(dllimport)
67 #endif
62 68
63 #ifdef FLAC_API_EXPORTS 69 #elif defined(FLAC__USE_VISIBILITY_ATTR)
64 #define»FLAC_API» _declspec(dllexport) 70 #define FLAC_API __attribute__ ((visibility ("default")))
71
65 #else 72 #else
66 #define FLAC_API» _declspec(dllimport) 73 #define FLAC_API
67 74
68 #endif 75 #endif
69 #endif
70 76
71 /** These #defines will mirror the libtool-based library version number, see 77 /** These #defines will mirror the libtool-based library version number, see
72 * http://www.gnu.org/software/libtool/manual.html#Libtool-versioning 78 * http://www.gnu.org/software/libtool/manual/libtool.html#Libtool-versioning
73 */ 79 */
74 #define FLAC_API_VERSION_CURRENT 10 80 #define FLAC_API_VERSION_CURRENT 11
75 #define FLAC_API_VERSION_REVISION 0 /**< see above */ 81 #define FLAC_API_VERSION_REVISION 0 /**< see above */
76 #define FLAC_API_VERSION_AGE 2 /**< see above */ 82 #define FLAC_API_VERSION_AGE 3 /**< see above */
77 83
78 #ifdef __cplusplus 84 #ifdef __cplusplus
79 extern "C" { 85 extern "C" {
80 #endif 86 #endif
81 87
82 /** \c 1 if the library has been compiled with support for Ogg FLAC, else \c 0. */ 88 /** \c 1 if the library has been compiled with support for Ogg FLAC, else \c 0. */
83 extern FLAC_API int FLAC_API_SUPPORTS_OGG_FLAC; 89 extern FLAC_API int FLAC_API_SUPPORTS_OGG_FLAC;
84 90
85 #ifdef __cplusplus 91 #ifdef __cplusplus
86 } 92 }
87 #endif 93 #endif
88 94
89 /* \} */ 95 /* \} */
90 96
91 #endif 97 #endif
OLDNEW
« no previous file with comments | « include/FLAC/callback.h ('k') | include/FLAC/format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698