diff options
author | Pete Batard <pbatard@gmail.com> | 2010-08-13 11:59:49 +0100 |
---|---|---|
committer | Daniel Drake <dan@reactivated.net> | 2010-08-23 18:48:55 -0600 |
commit | 29f9f9e3af3340df6a955881a93caf9d2a6d08d6 (patch) | |
tree | e956c2db4aa538c1f83550ee7bd24ca7ceba6f4a /configure.ac | |
parent | be523f1fe7c136c3fca06ae9c96aff44a22482ba (diff) |
Introduced calling convention (for Windows)
Under Windows, a variety of compilers and configurations are available,
meaning that the manner of parameter passing (e.g. registers vs stack)
can vary.
Match the Windows API calling convention and document this appropriately.
This calling convention will be used regardless of the configuration of
the user's development platform.
The only user-level complication is that all functions used as libusb
callbacks must use the same calling convention as libusb. The
LIBUSB_CALL macro is provided to make this easy.
Signed-off-by: Michael Plante <michael.plante@gmail.com>
Signed-off-by: Pete Batard <pbatard@gmail.com>
[dsd: slight change of strategy, add documentation]
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 3c959e4..39b11f2 100644 --- a/configure.ac +++ b/configure.ac @@ -151,9 +151,9 @@ saved_cflags="$CFLAGS" CFLAGS="$CFLAGS -Werror -fvisibility=hidden" AC_COMPILE_IFELSE(AC_LANG_PROGRAM([]), [VISIBILITY_CFLAGS="-fvisibility=hidden" - AC_DEFINE([API_EXPORTED], [__attribute__((visibility("default")))], [Default visibility]) ], + AC_DEFINE([DEFAULT_VISIBILITY], [__attribute__((visibility("default")))], [Default visibility]) ], [ VISIBILITY_CFLAGS="" - AC_DEFINE([API_EXPORTED], [], [Default visibility]) ], + AC_DEFINE([DEFAULT_VISIBILITY], [], [Default visibility]) ], ]) CFLAGS="$saved_cflags" |